GNU bug report logs - #23141
25.1.50; emacsclient.desktop

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Tue, 29 Mar 2016 10:11:01 UTC

Severity: wishlist

Tags: fixed

Merged with 21042

Found in version 25.1.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23141 in the body.
You can then email your comments to 23141 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23141; Package emacs. (Tue, 29 Mar 2016 10:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Helmut Eller <eller.helmut <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 29 Mar 2016 10:11:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.50; emacsclient.desktop
Date: Tue, 29 Mar 2016 12:10:00 +0200
It would be useful to have a emacsclient.desktop file, because that
makes it possible to use emacsclient with docks/panels or the "Open
with" menu in some file managers.

Emacs already comes with emacs.desktop file, but that starts a new Emacs
process every time.  The emacsclient.desktop should use an existing
Emacs if there is one or start a new Emacs if there is none.

I created my own emacsclient.desktop (see below) but I think many people
would like something like that and it would be more efficient to ship a
good emacsclient.desktop with Emacs.

My version uses two (perhaps not so obvious) tricks:
1) the "-a emacs" part starts a new Emacs if no existing Emacs process
   can be found
2) adding +0 makes it possible to start emacsclient without file
   argument.  Emacs will then switch to the scratch buffer.

[Desktop Entry]
Name=Emacsclient
Comment=Tells a running Emacs to visit a file
Exec=emacsclient -a emacs --no-wait +0 %F
Icon=emacs24
Terminal=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Type=Application
Categories=Utility;Development;TextEditor;





Forcibly Merged 21042 23141. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 29 Mar 2016 21:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23141; Package emacs. (Sun, 07 Feb 2021 13:56:02 GMT) Full text and rfc822 format available.

Message #10 received at 23141 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>
Cc: 23141 <at> debbugs.gnu.org, 21042 <at> debbugs.gnu.org, Rusi <rustompmody <at> gmail.com>
Subject: Re: bug#23141: 25.1.50; emacsclient.desktop
Date: Sun, 07 Feb 2021 14:55:48 +0100
Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com> writes:

> There exists etc/emacs.desktop.  Please consider adding an
> emacsclient.desktop

This was added to Emacs 28 earlier this year, so I'm closing this bug
report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 07 Feb 2021 13:57:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 23141 <at> debbugs.gnu.org and Helmut Eller <eller.helmut <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 07 Feb 2021 13:57:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 08 Mar 2021 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.