all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21042: There exists etc/emacs.desktop. Please consider adding an emacsclient.desktop
@ 2015-07-12  4:08 Vaidheeswaran C
  2015-07-12 17:52 ` Vaidheeswaran C
  2021-02-07 13:55 ` bug#23141: 25.1.50; emacsclient.desktop Lars Ingebrigtsen
  0 siblings, 2 replies; 4+ messages in thread
From: Vaidheeswaran C @ 2015-07-12  4:08 UTC (permalink / raw)
  To: 21042; +Cc: Rusi


I am filing this bug report on behalf of Rusi.  See this thread
https://lists.gnu.org/archive/html/help-gnu-emacs/2015-07/msg00254.html

----------------------------------------------------------------

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

On my debian wheezy, there is a desktop file for emacs but NOT for
emacsclient.  I have a feeling that, once Emacs repo officially
recommends a emacsclient.desktop file and mention that in NEWS file,
package distributors would be inclined to explore means to package
this file on their distributions.

$ dpkg -S /usr/bin/emacsclient.emacs23
emacs23-bin-common: /usr/bin/emacsclient.emacs23

$ dpkg -L emacs23-bin-common | grep desktop

$ dpkg -L emacs23 | grep desktop
/usr/share/applications/emacs23.desktop

----------------------------------------------------------------

FWIW (and tangentially related to Emacs), my box ships with a desktop
file for gnuclient.

$ dpkg -L gnuserv | grep desktop
/usr/share/applications/gnuserv.desktop

$ cat /usr/share/applications/gnuserv.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=gnuclient
GenericName=gnuclient
Comment=Client for the GNU Emacs Text Editor
Exec=/usr/bin/gnuclient.emacs
TryExec=gnuclient
Terminal=false
Type=Application
Categories=Application;Utility;TextEditor;
MimeType=text/plain





^ permalink raw reply	[flat|nested] 4+ messages in thread
* bug#23141: 25.1.50; emacsclient.desktop
@ 2016-03-29 10:10 Helmut Eller
  0 siblings, 0 replies; 4+ messages in thread
From: Helmut Eller @ 2016-03-29 10:10 UTC (permalink / raw)
  To: 23141

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;






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-07 13:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-12  4:08 bug#21042: There exists etc/emacs.desktop. Please consider adding an emacsclient.desktop Vaidheeswaran C
2015-07-12 17:52 ` Vaidheeswaran C
2021-02-07 13:55 ` bug#23141: 25.1.50; emacsclient.desktop Lars Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2016-03-29 10:10 Helmut Eller

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.