GNU bug report logs - #79068
30.1; emacsclient.desktop: x-scheme-handler/org-protocol is inconsistent with %F

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ulrich Müller <ulm@HIDDEN>; merged with #74467; dated Mon, 21 Jul 2025 08:42:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 74467 79068. Request was from Ulrich Müller <ulm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 79068 <at> debbugs.gnu.org:


Received: (at 79068) by debbugs.gnu.org; 21 Jul 2025 19:34:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 21 15:34:42 2025
Received: from localhost ([127.0.0.1]:59368 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1udwHZ-0003bV-QG
	for submit <at> debbugs.gnu.org; Mon, 21 Jul 2025 15:34:42 -0400
Received: from mout01.posteo.de ([185.67.36.65]:50751)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yantar92@HIDDEN>)
 id 1udwHW-0003b9-Jt
 for 79068 <at> debbugs.gnu.org; Mon, 21 Jul 2025 15:34:39 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id AD686240029
 for <79068 <at> debbugs.gnu.org>; Mon, 21 Jul 2025 21:34:31 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net;
 s=1984.ea087b; t=1753126471;
 bh=C+ZJv+u4jpUU5Hiue5r4yGT3kZqz57ZRLlj1FEJe1l8=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 Content-Transfer-Encoding:From;
 b=Y59YSc5bOygWQ+yuYbBNCHu69ZnMBXIKQlzC0jzqRkidDMF1zkSawQbkNyTShKo06
 qTgRircR6DVbfu6ggF1p33qgjweBb6d9gxcutCZpgqtbsSZKZoHtUaGTfdXzxDqecp
 tZZD9B7UK0EnZl0O/uCKy7Czji6JvlCBewDhPTjf4MWzKE8XYg1QocH0wCWOJ3ExIM
 18i3S8smyKhVJk9mF3odbGRzpzlxGPMCgTOSpdy3ftV+sEV2A/OE6Wm8gbQyaOH7v+
 e3QxT7M6IBigo/8sFie2buEdPm1yMSOIwgQQe/hCPng1tDp60KyVNTEGSpeQJDHmiW
 GKF2V36exDtR0A79oe4c6/j/kaWpT+wLGyN18pgMMmd+6M/0l8gWxr6YwUTNI2m6R/
 T47LwLQJK6EB6pyfUNLJQNCUGq+bqB0QqgYH2WJELYqEZ9Rp73yQbv7XKSwy2YF8l7
 6LvIJ3l9AX/2eJT25bD83wbFezooJAxKsz3UXRyCaNmSE/M6Tak
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4bm9ZZ4xzfz9rxF;
 Mon, 21 Jul 2025 21:34:30 +0200 (CEST)
From: Ihor Radchenko <yantar92@HIDDEN>
To: Ulrich =?utf-8?Q?M=C3=BCller?= <ulm@HIDDEN>
Subject: Re: 30.1; emacsclient.desktop: x-scheme-handler/org-protocol is
 inconsistent with %F
In-Reply-To: <ucy9tzpyx@HIDDEN>
References: <uecua0wcn@HIDDEN> <ucy9tzpyx@HIDDEN>
Date: Mon, 21 Jul 2025 19:34:31 +0000
Message-ID: <87seiptk4a.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79068
Cc: 79068 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ulrich M=C3=BCller <ulm@HIDDEN> writes:

> A possible solution would be to drop x-scheme-handler/org-protocol
> from emacsclient.desktop, and split it off into its own desktop file:
> ...
>
> However, adding yet another desktop file looks like overkill.
> (And considering Eli's reply in bug #79066 it won't be a viable option.)

Also see bug#74467.

--=20
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79068; Package emacs. Full text available.

Message received at 79068 <at> debbugs.gnu.org:


Received: (at 79068) by debbugs.gnu.org; 21 Jul 2025 12:30:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 21 08:30:16 2025
Received: from localhost ([127.0.0.1]:56163 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1udpep-0003T0-SO
	for submit <at> debbugs.gnu.org; Mon, 21 Jul 2025 08:30:16 -0400
Received: from woodpecker.gentoo.org
 ([2001:470:ea4a:1:5054:ff:fec7:86e4]:58583 helo=smtp.gentoo.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ulm@HIDDEN>) id 1udpel-0003M7-F1
 for 79068 <at> debbugs.gnu.org; Mon, 21 Jul 2025 08:30:12 -0400
Received: from urania (p200300cbaf001400c670eee5151c57e5.dip0.t-ipconnect.de
 [IPv6:2003:cb:af00:1400:c670:eee5:151c:57e5])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested) (Authenticated sender: ulm)
 by smtp.gentoo.org (Postfix) with ESMTPSA id DE9B3335D79;
 Mon, 21 Jul 2025 12:30:01 +0000 (UTC)
From: =?utf-8?Q?Ulrich_M=C3=BCller?= <ulm@HIDDEN>
To: 79068 <at> debbugs.gnu.org
Subject: Re: 30.1; emacsclient.desktop: x-scheme-handler/org-protocol is
 inconsistent with %F
In-Reply-To: <uecua0wcn@HIDDEN> ("Ulrich =?utf-8?Q?M=C3=BCller=22's?=
 message of "Mon, 21 Jul 2025 10:41:28 +0200")
References: <uecua0wcn@HIDDEN>
Date: Mon, 21 Jul 2025 14:29:58 +0200
Message-ID: <ucy9tzpyx@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79068
Cc: Ihor Radchenko <yantar92@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

A possible solution would be to drop x-scheme-handler/org-protocol
from emacsclient.desktop, and split it off into its own desktop file:

---------- 8< ----------
[Desktop Entry]
Type=Application
Name=emacsclient (org-protocol)
NoDisplay=true
Comment=Tell a running Emacs to handle an org-protocol link
Icon=emacs
Exec=emacsclient %U
Terminal=false
MimeType=x-scheme-handler/org-protocol;
---------- >8 ----------

However, adding yet another desktop file looks like overkill.
(And considering Eli's reply in bug #79066 it won't be a viable option.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79068; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Jul 2025 08:41:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 21 04:41:58 2025
Received: from localhost ([127.0.0.1]:55230 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1udm5u-0002Wt-42
	for submit <at> debbugs.gnu.org; Mon, 21 Jul 2025 04:41:58 -0400
Received: from lists.gnu.org ([2001:470:142::17]:44406)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ulm@HIDDEN>) id 1udm5o-0002WF-Ps
 for submit <at> debbugs.gnu.org; Mon, 21 Jul 2025 04:41:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ulm@HIDDEN>) id 1udm5c-0000Vu-LH
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2025 04:41:40 -0400
Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <ulm@HIDDEN>) id 1udm5Z-0002Ew-RK
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2025 04:41:40 -0400
Received: from urania (p200300cbaf001400c670eee5151c57e5.dip0.t-ipconnect.de
 [IPv6:2003:cb:af00:1400:c670:eee5:151c:57e5])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested) (Authenticated sender: ulm)
 by smtp.gentoo.org (Postfix) with ESMTPSA id 2DCB7340D30;
 Mon, 21 Jul 2025 08:41:31 +0000 (UTC)
From: =?utf-8?Q?Ulrich_M=C3=BCller?= <ulm@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.1; emacsclient.desktop: x-scheme-handler/org-protocol is
 inconsistent with %F
Date: Mon, 21 Jul 2025 10:41:28 +0200
Message-ID: <uecua0wcn@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@HIDDEN;
 helo=smtp.gentoo.org
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
Cc: Ihor Radchenko <yantar92@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

emacsclient.desktop advertises x-scheme-handler/org-protocol as a
supported MIME types, but uses the %F field code (i.e. a list of files)
in its Exec key.

According to the Desktop Entry Specification, a non-file MIME type like
x-scheme-handler/* must not be paired with %F but with %U.

KDE warns about this at runtime (e.g. when trying to open a file in its
Dolphin file manager):

kf.kio.core: "/usr/share/applications/emacsclient.desktop" contains supported protocols but doesn't use %u or %U in its Exec line! This is inconsistent.


Unfortunately, I don't see a good way to fix this. Replacing %F with %U
might work for some applications, but the spec says about the %U field
code: "Local files may either be passed as file: URLs or as file path.",
and passing file:// to emacsclient won't generally work.

I've also tried adding both %F and %U but it is not valid either:

$ desktop-file-validate emacsclient.desktop 
emacsclient.desktop: error: value "sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F %U" for key "Exec" in group "Desktop Entry" may contain at most one "%f", "%u", "%F" or "%U" field code




Acknowledgement sent to Ulrich Müller <ulm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79068; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 21 Jul 2025 20:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.