From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexey Lebedeff via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74467: 31.0.50; org-protocol emacsclient.desktop change is not fully functional Date: Thu, 21 Nov 2024 18:53:21 +0000 Message-ID: Reply-To: Alexey Lebedeff Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12277"; mail-complaints-to="usenet@ciao.gmane.io" To: 74467@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 22 04:57:26 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 1tEKnN-00033N-Gy for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Nov 2024 04:57:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEKn4-0007pc-0h; Thu, 21 Nov 2024 22:57:06 -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 1tEKn0-0007pK-TJ for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 22:57:03 -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 1tEKn0-0001fi-Kl for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 22:57: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:From:Date:To:Subject; bh=wlManRtZQXkxotjJ0YiZTT7Vz1nViSwm1nSU3LgO8Cg=; b=RWQhaNL/AlEdmqVubQWEF1jCM85gQf0T2am1Kj9TO4Q7HZ0rQJkWxBtQCkHFMS+Fg3EDxl4RxT+KabokGmN9RPSZ7yR0/rhyaROSdlvWkkhnwVnnwuHVx0yHu29jaUZG9Q7KpTpxmj45qG039ibeVTv4VEiO9KCrdIwE6djOaJiimtUYDIStELc2H0MV/lIvsTnff9RC8d+N81911jwORjcqbxTSlQaE5kPpLi8c2GecE3B3dH64GhDhV94KfBb10rE+E//hsvrvRH69NKwhPKRPlbEMyQeu+FK2wjgS8eVH5bVksktU1I0VtL5utzz2NMjoyo1OO8Zc1fZW6ETnlg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEKn0-0000v5-Ff for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 22:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alexey Lebedeff Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2024 03:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74467 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17322477993497 (code B ref -1); Fri, 22 Nov 2024 03:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Nov 2024 03:56:39 +0000 Original-Received: from localhost ([127.0.0.1]:52582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEKmc-0000uI-01 for submit@debbugs.gnu.org; Thu, 21 Nov 2024 22:56:39 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tECJ4-00016K-BI for submit@debbugs.gnu.org; Thu, 21 Nov 2024 13:53:36 -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 1tECJ2-0001ow-JS for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 13:53:32 -0500 Original-Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tECIz-0005T6-Ul for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 13:53:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=binarin.info; s=protonmail2; t=1732215204; x=1732474404; bh=wlManRtZQXkxotjJ0YiZTT7Vz1nViSwm1nSU3LgO8Cg=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=wYqQf+itcIBlx08xeQqVU/3Nj5UhmggWiATYDE/X8qVXXAJ4h9o06VMIgmfRK4eEd xko63aZ1ZoEKb03smSTLLIuvCI93Po4ZkoTvW4mAKRXBeKM1KKAfcyvk/NmU8lmJ8c 7ZspCdT+yrkLIxgb27l/v/5uHsWaT8kgUauhpXX3aIIIsTTN2u5VNMB259vSVIPDDu Bjza88xbctxcwoIxrFSD8hgX8MvxAlzSdlHQqGnxBMdR0bnK6mws0gZ8s5mCGVA4Io 7qbPi8qDo8UFOgQh+rLkoCsdPtAdQnKm3u+QDPRzQDclmAN2b5xtjVJNMynoShNfo0 QRYOSwqGarlmg== Feedback-ID: 31367617:user:proton X-Pm-Message-ID: fcfeb73f0dc7ac218d77e224dae8131ac4085753 Received-SPF: pass client-ip=185.70.40.18; envelope-from=binarin@binarin.info; helo=mail-4018.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 21 Nov 2024 22:56:36 -0500 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:295764 Archived-At: The change introduced by https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65469 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=3Db9d3ecf8180c57dbb5c= a47253898ba0553e81c60 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-vari= ables.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=C2=A0 .desktop file (i.e. 'etc/emacsclient-org-protocol.desktop'), analoguous to the already existing 'etc/emacsclient-mail.desktop' (which uses '%u'). In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0) Repository revision: 9cfd13ff44e8d6f56a1025207c833ab45a7d51ba Repository branch: master System Description: NixOS 24.05 (Uakari)