From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74467: 31.0.50; org-protocol emacsclient.desktop change is not fully functional Date: Sat, 07 Dec 2024 14:17:41 +0200 Message-ID: <865xnvk7q2.fsf@gnu.org> References: <86seriksak.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74467@debbugs.gnu.org, binarin@binarin.info To: yantar92@posteo.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 13:18:10 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tJtlC-0009rL-1K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 13:18:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJtl6-00023z-KO; Sat, 07 Dec 2024 07:18:04 -0500 Original-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 ) id 1tJtl4-00023Z-Cg for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:18:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tJtl4-0000JA-4Q for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:18:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=u20ZdQ8pdVRtG2Tn2eNQaFqSfZe6PP8ZCw0ST4+gzzg=; b=dmFTQE+eltT0YTsuMb95T5SeWcqxBo2iWMo2XfSjyBHja7rLyzT59PZun/sYghFnbeSIg6FZYQlCAeniZ3IOEqIWJgeNiuBeZYfiKD2tHkCSsjQvfExdGgtCYH1hsO2ybm1xfhy1qyE8W/gTvK1mfssvf34Yqvjjp4rZuyLUh7vtKn/JQv2hMvOijXe7fHHyLnNmOUJaNnM0WsW50KM97EgOvZ/al2nDWqyfkcCsvxfRAKozmb5BYeRTIZoMWYPbC/cCothDSOG53GUfeHLUDEH960aMcDD9SKN3mGf3SDUW4kcyL4HDO9A94zmBpWU1mU+mOAeW0nf520hQerZYrg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJtl3-0001NY-W7 for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Dec 2024 12:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74467 X-GNU-PR-Package: emacs Original-Received: via spool by 74467-submit@debbugs.gnu.org id=B74467.17335738745282 (code B ref 74467); Sat, 07 Dec 2024 12:18:01 +0000 Original-Received: (at 74467) by debbugs.gnu.org; 7 Dec 2024 12:17:54 +0000 Original-Received: from localhost ([127.0.0.1]:45669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtkv-0001N7-JP for submit@debbugs.gnu.org; Sat, 07 Dec 2024 07:17:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtks-0001Ml-9l for 74467@debbugs.gnu.org; Sat, 07 Dec 2024 07:17:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJtkm-0000Dq-Ux; Sat, 07 Dec 2024 07:17:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=u20ZdQ8pdVRtG2Tn2eNQaFqSfZe6PP8ZCw0ST4+gzzg=; b=Eu+YKFNEZB9GLTIiHZHU D04UZOE+MUuU688zFyxhMHWoQBjytfelEDAP5F+Pgpr81eqKDj5O9dyyUfXwSjWae/8dWlIRrFy6y gJhAXFW2beRSDnl3DVl2KCigdEYAThCBDd05W3xK8R8wL3c2N+JEVFjE3tpJ4elIyia90HhGUdn0Z bkqf/96acS/+r+mTPiNRB5hk4WXnlzDV8Ltxq/eQI1JhLYaBw8aSPsJaS0tp3rb9/flUn692mcejB /NHIE2w35sxPJfooNAWKelbDhyXi8IolFR07NLh6YLIcIEvbo9j+9g9K7q8GYw9kBQaFJurgPVZVM e+67SKwergwxag==; In-Reply-To: <86seriksak.fsf@gnu.org> (message from Eli Zaretskii on Sat, 23 Nov 2024 15:12:35 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296545 Archived-At: Ping! Ihor, can you please look into this? > Cc: 74467@debbugs.gnu.org > Date: Sat, 23 Nov 2024 15:12:35 +0200 > From: Eli Zaretskii > > > Date: Thu, 21 Nov 2024 18:53:21 +0000 > > From: Alexey Lebedeff via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" > > > > The change introduced by > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65469 doesn't work anymore > > in 'generic' desktop environment (as detected by 'xdg-open'). > > > > I assume it works in some desktop environments, where `xdg-open` > > delegates opening to the desktop environment itself. But there is also a > > `generic` version, which tries to implent XDG specification itself. > > > > On 2023-10-03 there was a change introduced in xdg-utils > > https://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=b9d3ecf8180c57dbb5ca47253898ba0553e81c60 > > to more strictly follow xdg specification, and only pass URL-like > > arguments to programs that explicitly requested this by using '%u' or > > '%U' parameters. > > > > 'etc/emacsclient.desktop' uses '%F' parameter, which should be used for > > programs that do not understand the URL syntax > > (https://specifications.freedesktop.org/desktop-entry-spec/latest/exec-variables.html > > - section about '%f', but also applies to '%F'). > > > > "x-scheme-handler/org-protocol" is the only URL-like protocol that's > > mentioned in the 'etc/emacsclient.desktop', but 'xdg-open' refuses to > > use it. > > > > Just changing '%F' to '%U' in 'etc/emacsclient.desktop' is not possible, > > as it allows 'xdg-open' to pass local files as "file:/" URL's if it > > wants to. > > > > One solution would be introducing separate  .desktop file > > (i.e. 'etc/emacsclient-org-protocol.desktop'), analoguous to the already > > existing 'etc/emacsclient-mail.desktop' (which uses '%u'). > > Ihor, could you please look into this? > > (Each time such issues pop up, I regret again that we agreed to > include these *.desktop files in our source tree, sigh.) > > > >