unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Help me understand the exec entry in emacsclient.desktop
@ 2023-12-02  1:37 Alexandros Prekates
  2023-12-17  0:58 ` Mekeor Melire
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandros Prekates @ 2023-12-02  1:37 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

That is the entry:

Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient
--alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec
emacsclient --alternate-editor= --create-frame; fi"

My interpretation so far is: If files where given as arguments then
start in a certain display and use the current opened frame .
If files were not given then create a new frame.
But it doesnt make much sense to me. Also why  sh %F and not %F ?
And why in the latter case display is not being set ?

Alexandros.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

end of thread, other threads:[~2023-12-17  0:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-02  1:37 Help me understand the exec entry in emacsclient.desktop Alexandros Prekates
2023-12-17  0:58 ` Mekeor Melire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).