From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar 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: Mon, 16 Dec 2024 23:07:26 +0200 Message-ID: <39756.4068249025$1734383377@news.gmane.org> References: <86seriksak.fsf@gnu.org> <87ed27cthy.fsf@localhost> <86cyhrpfbf.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar 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="6628"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74467@debbugs.gnu.org, Ihor Radchenko , binarin@binarin.info To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 22:09:31 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 1tNILK-0001bG-Nx for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 22:09:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNIKy-0000nq-QR; Mon, 16 Dec 2024 16:09:09 -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 1tNIKs-0000nJ-TM for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 16:09: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 1tNIKs-00015h-Kh for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 16:09: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:Date:References:In-Reply-To:From:To:Subject; bh=YppkcmnDSUZRy/TaQONoKLJ+Dh7XFZCbCYeXX7j1Q3Q=; b=eLNbXcv+lAS58LkEH/Fc4VQzrb/qiz+uq5VToSbyJp2sH2Aj1fGrCuCk5y5hnbdWHBCha9vrz7QDuR+nRlfwBc9dgeNj3G6yte2XuKoznokjbTFGvIfELhuvOzaHoZ9ukfVzWwxFhFaLg3BBcAOG8LhsFTamae20mHnftxLGPmYgQkFkmHmoNe0osT2Q5NY5fhBuTYrP/tlr1mwleyjB+LAOZXFp93oEYyXDwld1C64mDweaIv85BcqRkdd5f+zGU2ivwHWkgZuqY3JCi/LSyy1E86zILZqhrtIiX7kK2KWh81uu5YAr+3Y7jjIveDHMs1/0h9vSQI3lNZbEq0whCA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNIKs-0001cB-ER for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 16:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 21:09: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.17343832896117 (code B ref 74467); Mon, 16 Dec 2024 21:09:02 +0000 Original-Received: (at 74467) by debbugs.gnu.org; 16 Dec 2024 21:08:09 +0000 Original-Received: from localhost ([127.0.0.1]:56481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNIK0-0001aa-Ru for submit@debbugs.gnu.org; Mon, 16 Dec 2024 16:08:09 -0500 Original-Received: from thaodan.de ([185.216.177.71]:58308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNIJw-0001Zx-Gn for 74467@debbugs.gnu.org; Mon, 16 Dec 2024 16:08:07 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 3CE8DD00049; Mon, 16 Dec 2024 23:07:28 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1734383248; bh=eKg+IUQNaZ+jvHGAZv/vUh4WdCazdc68KpGECfC8ldE=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=yu5UJjGPwL/zCAmFWWyrHZmQNOL9b4smgvJJuseBlpSw1aib1voBeUrx1ces5AzxM bmeiOmRgMY7J0lmqfhLGP9/ZvBGKHlGR4Qh4mJ1LSCRMcQcXYL6qaIZScWTHQhtQlG OzmM9Pn+F6tknl6vvANLr9pyodJ/EoH7buJnAkQhmvbp9Ltsa8ZxH2eHGd3KBu5gPy R2oymifRzaLExK8oaF+cyKs/3g6xXAZxw9EGoGAbcgDnpe3eZWVZtVecIChCdrA6W/ FAwRvoauc2c7fd4rXEj/t5C452ijaVDvo7ybr6HQigtMNkGtv9SMRqEYR91568LY+3 EXvHmFhvyhJT/LwdSxZCIHgXiDR0klhg1C+cyXOLIQhp8XPfGFqTxPPUC1W1aPZkvZ ipCuIeJQQ5ROZXhFqyoAFiMlF/wVKoPWVcWJIOQcG7bv0PAZLb9+uBB1UwT6K2/Ppq ME1bvYOfOny3Al2z+XGIBVCr8/4I7hwA9uMlv8WiWmVry/rLtptiOHJk/RDs0OfdTO FMybdtA5FHqRFeenOmkZBkRpcOLBXk50X+uoDIYJMRJFpXnvck48d7GOuExx2dlxYJ E9lXJ5cpMAAFvI0piZNZ0bt1ZvHU2JhS7YxPSbYaexETBgw3h6aeeMFfc+HjzvTI9W nwzdql7b58d9dLZztRpIirq0= In-Reply-To: <86cyhrpfbf.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 16 Dec 2024 22:01:56 +0200") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH 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:297231 Archived-At: Eli Zaretskii writes: >> From: Ihor Radchenko >> Cc: Alexey Lebedeff , 74467@debbugs.gnu.org >> Date: Mon, 16 Dec 2024 19:34:01 +0000 >>=20 >> Eli Zaretskii writes: >>=20 >> >> One solution would be introducing separate=C2=A0 .desktop file >> >> (i.e. 'etc/emacsclient-org-protocol.desktop'), analoguous to the alre= ady >> >> existing 'etc/emacsclient-mail.desktop' (which uses '%u'). >> > >> > Ihor, could you please look into this? >>=20 >> I am attaching an *untested* patch that implements a new .desktop file. > > Thanks. Let's see if someone objects. > >> Note that an alternative could be handling file:// URIs by Emacs. Your c= all. > > I thought we already did? Not really if I open Emacs with a file uri such as file:///home/bidar/test.sh /home/bidar/home/bidar/test.sh will be opened. Would it be possible to call file-name-handlers if a path starts with '$uri-name://' for the files passed to Emacs or Emacsclient? >> > (Each time such issues pop up, I regret again that we agreed to >> > include these *.desktop files in our source tree, sigh.) >>=20 >> We are obliged to cooperate with other parts of GNU toolchain, don't we? > > To some extent, yes. This one goes waaaay beyond that. I don't > understand why Emacs must come with these files, instead of the > desktop folks developing and keeping them up to date. There's nothing > specific to Emacs in these files, just a lot of XDG and shell > trickery. No application I have seen so far does require shell trickery in their desktop files. Most of one or two desktop files with some metadata and the commands to call and that's it. It would be easier for Emacs to follow closer to the standard instead asking for separate implementations. I don't know how this could get any simpler. Maybe some scripts to generate desktop files for Emacs packages if there is no for separate desktop files per modes e.g. a desktop file for Gnus or Info mode.