all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mekeor Melire <mekeor@posteo.de>
To: 67736@debbugs.gnu.org
Cc: Eli Zaretskii <eliz@gnu.org>
Subject: bug#67736: 30.0.50; emacsclient.desktop fails with quoting-related error
Date: Sun, 10 Dec 2023 11:14:25 +0000	[thread overview]
Message-ID: <875y16s3i2.fsf@posteo.de> (raw)
In-Reply-To: <83cyvewpha.fsf@gnu.org>

2023-12-10 08:17 eliz@gnu.org:

> Why does emacsclient exit with a failure in that case?  When I try
> invoking emacsclient from the shell prompt, it exits with a zero exit
> status, not with a failure.

Invoking emacsclient from shell prompt directly, works just fine for me
too. Supposedly, it's not emacsclient that exists with failure but the
sh command mentioned below.

> What is the command that is run with the current emacsclient.desktop
> file?

Unfortunately, I don't know which command xdg-open tries to execute
exactly. But the configuration (in Emacs' emacsclient.desktop) is this:

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

    https://git.sv.gnu.org/cgit/emacs.git/tree/etc/emacsclient.desktop?h=cf11fdfd8e460d966ba279f00633ab378038de68#n6

Note that the Exec key of .desktop files has very complicated quoting
rules:

    https://specifications.freedesktop.org/desktop-entry-spec/1.1/ar01s06.html

By the way, I found a recent bug report on the Github website of the
Telegram-Desktop repository that mentions the same problem that I'm
experiencing:

    https://github.com/telegramdesktop/tdesktop/issues/27100

Actually, I have the feeling that this is a bug in xdg-utils. I will
file a bug report there.

In the mean time, should we work-around this bug by just using this or
something similar?:

    Exec=emacsclient --alternate-editor= --create-frame %F





  reply	other threads:[~2023-12-10 11:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-10  0:13 bug#67736: 30.0.50; emacsclient.desktop fails with quoting-related error Mekeor Melire
2023-12-10  6:17 ` Eli Zaretskii
2023-12-10 11:14   ` Mekeor Melire [this message]
2023-12-10 11:28     ` Mekeor Melire
2023-12-10 11:56       ` Eli Zaretskii
2023-12-17  0:14         ` Mekeor Melire
2023-12-17 14:24           ` Peter Oliver
2023-12-17 15:35             ` Ulrich Mueller
2023-12-17 23:06               ` Mekeor Melire
2023-12-18 10:17                 ` Ulrich Mueller
2023-12-18 12:14                   ` Mekeor Melire
2023-12-10 11:54     ` Eli Zaretskii

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=875y16s3i2.fsf@posteo.de \
    --to=mekeor@posteo.de \
    --cc=67736@debbugs.gnu.org \
    --cc=eliz@gnu.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.
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.