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, 23 Nov 2024 15:12:35 +0200 Message-ID: <86seriksak.fsf@gnu.org> References: 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="16040"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74467@debbugs.gnu.org To: Alexey Lebedeff , Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 14:13: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 1tEpwj-00042R-RD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 14:13:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEpwe-0002Ba-C3; Sat, 23 Nov 2024 08:13: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 1tEpwc-0002B5-H9 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 08:13: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 1tEpwc-0004Ht-7m for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 08:13: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=kHfcZiVf+Y9hcgcRJi8hjgmHRAJzwDct9OtUNcnD4tE=; b=GfVKVCtOVzX/gw/WdZCNTjMlJ1t14637RzwwYvk8H0mBeJbsWg2K3sYDwtcFukMZ+h48zpxXsh84bk1LCpaDNukN8uILkyies9q0Sap4wuOTaJFDIgvQIn+ReKoudwAfuzfwF83V3KKg9mR2kprv9vkHAzT3eG87F2WnLyYWi6nR1e7gtnDNt665Oowy/ubkrp+3/c8sZizqiVoM9bKp0znAIKORNx3nmFeH+edVFeWzmrhF0eQbxb2QoepKdJJlNfrTccw7sy3sFIVVOIYV8hXluWjP9XVH6FRTINT7jx+qZKNeWMSlRxUHasbqxJDsOa4GhOahNHpz8omGsKBwmw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEpwc-0006Gw-1z for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 08:13: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, 23 Nov 2024 13:13:02 +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.173236756824087 (code B ref 74467); Sat, 23 Nov 2024 13:13:02 +0000 Original-Received: (at 74467) by debbugs.gnu.org; 23 Nov 2024 13:12:48 +0000 Original-Received: from localhost ([127.0.0.1]:57109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEpwN-0006GR-Tr for submit@debbugs.gnu.org; Sat, 23 Nov 2024 08:12:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEpwL-0006G6-Fj for 74467@debbugs.gnu.org; Sat, 23 Nov 2024 08:12:46 -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 1tEpwF-0004G6-O6; Sat, 23 Nov 2024 08:12:40 -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=kHfcZiVf+Y9hcgcRJi8hjgmHRAJzwDct9OtUNcnD4tE=; b=a4ve0zTsnjMekoq5xgt+ pd6Eekoepoupj8TzeWFQC95OguCzQ8vD2PtPyj/nSmekeoXdDe8WAiGG9qiYMPuilsSv9Y2zZn+U3 LJioqsDiET+5M4LWen7drVDXpOovXP1YGc/9/yf4NQl1BuTOheYo1Iun42EiU8ECGx8tM+SO+xBGN fbONLABeNGTXs2rmbgj1ptiUJri1VphLRr3Mn9PDbV42Nay31SNtXiuoWyaa8EZBjJJqmPp+LkyG3 +L6q2dDwsvNUOwUbCPgm2SkcY58z0OL+QGzHzUTLxUEa3euUPeRPeYo59Ue3lvCgSOY+f4OHc6AM6 /N5q3eBHvh6RoA==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:295831 Archived-At: > 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.)