all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#23141: 25.1.50; emacsclient.desktop
@ 2016-03-29 10:10 Helmut Eller
  0 siblings, 0 replies; 2+ 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] 2+ messages in thread

* bug#23141: 25.1.50; emacsclient.desktop
  2015-07-12  4:08 bug#21042: There exists etc/emacs.desktop. Please consider adding an emacsclient.desktop Vaidheeswaran C
@ 2021-02-07 13:55 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-07 13:55 UTC (permalink / raw
  To: Vaidheeswaran C; +Cc: 21042, 23141, Rusi

Vaidheeswaran C <vaidheeswaran.chinnaraju@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





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

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

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

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.