commit: 1669a7d9d3090b18d6f67506eeb85b943e502eb8 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sun Jul 20 18:38:05 2025 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sun Jul 20 18:38:05 2025 +0000 URL: https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=1669a7d9
Handle empty %F in emacsclient.desktop * emacsclient.desktop (Exec): Add a shell wrapper, in order to pass the "-c" option when called with an empty list of files. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> ChangeLog | 3 +++ emacsclient.desktop | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7ff3185..485c380 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2025-07-20 Ulrich Müller <[email protected]> + * emacsclient.desktop (Exec): Add a shell wrapper, in order to + pass the "-c" option when called with an empty list of files. + * emacs.desktop (Comment): * emacsclient.desktop (Comment): Update. diff --git a/emacsclient.desktop b/emacsclient.desktop index 2a5c95a..d4ebdae 100644 --- a/emacsclient.desktop +++ b/emacsclient.desktop @@ -8,7 +8,7 @@ Comment[es]=Abrir un archivo en un Emacs en ejecución Comment[fr]=Ouvre un fichier dans une instance d'Emacs qui est déjà lancée Icon=emacs TryExec=/usr/bin/emacsclient -Exec=/usr/bin/emacsclient %F +Exec=/bin/sh -c "exec /usr/bin/emacsclient \\"\\${@:--c}\\"" sh %F Terminal=false MimeType=text/css;text/english;text/html;text/plain;text/x-c;text/x-chdr;text/x-csrc;text/x-c++;text/x-c++hdr;text/x-c++src;text/x-java;text/x-makefile;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;x-scheme-handler/org-protocol; Categories=Development;TextEditor;
