From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#74467: 31.0.50; org-protocol emacsclient.desktop change is not fully functional Date: Sun, 05 Jan 2025 08:55:54 +0000 Message-ID: <87sepxprl1.fsf@localhost> References: <86seriksak.fsf@gnu.org> <87ed27cthy.fsf@localhost> <86cyhrpfbf.fsf@gnu.org> <864j2ot4w1.fsf@gnu.org> <86r05id8f5.fsf@gnu.org> <86o70lahmt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7121"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Bj=C3=B6rn?= Bidar , binarin@binarin.info, 74467@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 09:54:25 2025 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 1tUMOv-0001kr-2E for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 09:54:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUMOe-00016b-Iy; Sun, 05 Jan 2025 03:54: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 1tUMOa-00016J-Rh for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 03:54:05 -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 1tUMOZ-0002eP-KA for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 03:54:04 -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=JwoDb5te1urI0476wBvreK9so8zZ/TqXdwnzCl6qOCw=; b=qbK17btCAG5lx7S6BrVePa22UU6jnHp8XVcK8Ci6Mh9cVGRLt7PD2n+kEYaWNjm/j7iysOE/kLBONGpv9EvKuXWGGuyKQU7K6m119iVbCb6ggWOHLS8R3ishQI9uUWGr4fBXLv6iMEsO/eEYcdNkWRLI1bmbDmX7QVa5vqL7FMhJ4oROymwMmFBRViz4BruJo2dF8aFedrRtQ3wOJAZTHKqgpOnvLTxC6DkELzkWZP0URwIHdhwMp1sBqWxnt9r7q3+i4Y5wrWaXewmiaAtgXLOhOeyAW0QFP5cGl1O8W65SFr3WWm8aOkTLZfDTZwAnlVruuv5qNu363br9DHRZSA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUMOY-0005N8-Et for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 03:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 08:54: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.173606722520613 (code B ref 74467); Sun, 05 Jan 2025 08:54:02 +0000 Original-Received: (at 74467) by debbugs.gnu.org; 5 Jan 2025 08:53:45 +0000 Original-Received: from localhost ([127.0.0.1]:59804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUMOG-0005ML-TV for submit@debbugs.gnu.org; Sun, 05 Jan 2025 03:53:45 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:52595) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUMOE-0005M5-GJ for 74467@debbugs.gnu.org; Sun, 05 Jan 2025 03:53:44 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 928F6240027 for <74467@debbugs.gnu.org>; Sun, 5 Jan 2025 09:53:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1736067215; bh=udBsNyRYDsrPT0kTiJih9qgV2otZrhzsGUgiQzDZBvs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KtTaR6DA7irqCJfbDry+DMeSEkQa7GXQbIGUQRAkpoVkkGVd8HECggzQhLx5pwf6y DCPzVv7N6IhgEBVVQ0+ZA01s8BHQG0CUgSYASgIWjrxVYNjEDNWXKWCq0cwJCtJHZz kUgiUYe49Nkhih48VnEhgKDC0Ptgw/A9EsEkcHRZlt023oQsx52gJ74KOF/cWJ0WV4 CcACIh4KNLgD5zdM26kE43x5nMWp7dVi33LuOoctUo5vZxjUoeKIMlhrEVr/NgmGeU 0utu65GqfqZfBCGtDGdZDuMmGvVvb1liu8FIy3m3T1CdIQ/1XwfBwmUDH4WyF4hm5k tnu2sAaoP+WTg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YQrgy2mSDz9rxB; Sun, 5 Jan 2025 09:53:34 +0100 (CET) In-Reply-To: <86o70lahmt.fsf@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:298520 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: > ... Ihor > seemed to say that if this can be supported, there could be an > alternative patch for fixing this issue, and I'd like to see that > alternative patch to decide which one is simpler and/or more elegant. See the attached. If Emacs can handle file URIs, we can simply use %U field code. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=alternative.diff diff --git a/etc/emacsclient.desktop b/etc/emacsclient.desktop index 4395d3b02bc..c339ac93687 100644 --- a/etc/emacsclient.desktop +++ b/etc/emacsclient.desktop @@ -3,7 +3,7 @@ Name=Emacs (Client) GenericName=Text Editor Comment=Edit text MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;x-scheme-handler/org-protocol; -Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F +Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %U Icon=emacs Type=Application Terminal=false --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--