all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.