public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:emacs-common commit in: /
Date: Sun, 20 Jul 2025 18:45:28 +0000 (UTC)	[thread overview]
Message-ID: <1753036685.1669a7d9d3090b18d6f67506eeb85b943e502eb8.ulm@gentoo> (raw)

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  <ulm@gentoo.org>
 
+	* 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;


             reply	other threads:[~2025-07-20 18:45 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-20 18:45 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-22  8:59 [gentoo-commits] proj/emacs-tools:emacs-common commit in: / Ulrich Müller
2025-07-22  8:59 Ulrich Müller
2025-07-21 16:24 Ulrich Müller
2025-07-21 16:24 Ulrich Müller
2025-07-20 17:15 Ulrich Müller
2025-07-20 17:15 Ulrich Müller
2025-06-28 17:58 Ulrich Müller
2025-06-28 17:58 Ulrich Müller
2025-06-28 17:58 Ulrich Müller
2025-06-23 19:10 Ulrich Müller
2025-03-17 21:19 Ulrich Müller
2025-03-17  9:52 Ulrich Müller
2025-03-17  9:52 Ulrich Müller
2025-03-10 12:03 Ulrich Müller
2025-03-09 20:47 Ulrich Müller
2025-03-09 20:47 Ulrich Müller
2025-03-08 16:36 Ulrich Müller
2025-03-08 16:32 Ulrich Müller
2025-03-08  8:44 Ulrich Müller
2025-03-08  8:39 Ulrich Müller
2025-03-08  8:18 Ulrich Müller
2025-03-08  6:20 Ulrich Müller
2025-03-07 18:35 Ulrich Müller
2025-03-07  6:20 Ulrich Müller
2024-05-05 12:43 Ulrich Müller
2023-09-13  7:29 Ulrich Müller
2023-09-12 16:21 Ulrich Müller
2023-07-24 16:07 Ulrich Müller
2023-07-24 16:07 Ulrich Müller
2021-03-22  8:34 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1753036685.1669a7d9d3090b18d6f67506eeb85b943e502eb8.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox