From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mekeor Melire Newsgroups: gmane.emacs.bugs Subject: bug#67736: 30.0.50; emacsclient.desktop fails with quoting-related error Date: Sun, 10 Dec 2023 11:28:37 +0000 Message-ID: <871qbus35s.fsf@posteo.de> References: <87a5qiswvy.fsf@posteo.de> <83cyvewpha.fsf@gnu.org> <875y16s3i2.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67736@debbugs.gnu.org, Eli Zaretskii To: Mekeor Melire Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 10 12:39:06 2023 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 1rCI9J-000AL2-GX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Dec 2023 12:39:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCI94-0000fg-2t; Sun, 10 Dec 2023 06:38:50 -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 1rCI91-0000fB-RT for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 06:38:47 -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 1rCI91-00026O-IR for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 06:38:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rCI9F-0000Xp-Kj for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 06:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2023 11:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67736 X-GNU-PR-Package: emacs Original-Received: via spool by 67736-submit@debbugs.gnu.org id=B67736.17022082962034 (code B ref 67736); Sun, 10 Dec 2023 11:39:01 +0000 Original-Received: (at 67736) by debbugs.gnu.org; 10 Dec 2023 11:38:16 +0000 Original-Received: from localhost ([127.0.0.1]:49621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCI8V-0000Wk-FB for submit@debbugs.gnu.org; Sun, 10 Dec 2023 06:38:15 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:44825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCI8S-0000WV-Pu for 67736@debbugs.gnu.org; Sun, 10 Dec 2023 06:38:13 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CC03E240027 for <67736@debbugs.gnu.org>; Sun, 10 Dec 2023 12:37:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1702208272; bh=O4ZAtBMik0E2gq43zPO5CGRgJMDWB4QNtPv5QyDlSTk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=dWcx7MKKekWnPMsE/C+E3w9+A2aM1d6cL8Itm7RLU8yMYfwqtQGPrp0QOaAKS7Qjo +P5UGkQaBRXxfil/3NUfxUAvmaMXMZk8hcrsy457FdK5cNh+f9n3Kjm+EJP1rPJ3GW mU0B7kI+5lAEq/RoWWvOEGeKtA01IFTY0SY/0Or/715vFxGYuKyDq8pU3rTKaFv8HO d7bBPfFUEYkrj33QHqUc9OAIBd7cSNbSwYeWfHfha2s7qQWnsIZJ49Xw/7jgaEOl4p FEgRa+IQgvmcmKSr/beevXs5GrRqFTrtGzXba+w4P7TPu+MAfIpl46osEZn94YDsHy Yat1EAL+BoKOw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Sp2tS2XhLz6tvq; Sun, 10 Dec 2023 12:37:52 +0100 (CET) In-reply-to: <875y16s3i2.fsf@posteo.de> 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:275914 Archived-At: 2023-12-10 11:14 mekeor@posteo.de: > 2023-12-10 08:17 eliz@gnu.org: > Actually, I have the feeling that this is a bug in xdg-utils. I will > file a bug report there. Actually, there are already bug-reports on xdg-utils for this, also mentioning emacsclient.desktop explicitely: https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/236 https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/174 > In the mean time, should we work-around this bug by just using this or > something similar?: > > Exec=emacsclient --alternate-editor= --create-frame %F Should we close this very bug or should we implement a work-around? E.g we could stop using a complex, nested invokation of sh, and instead just execute emacsclient with some arguments, without any need for quoting, as I mentioned. Altenatively, we could ship an executable.sh which invokes emacsclient appropriately. [1] But the quoting of Exec= lines in .desktop-files is just flawed right now. [1] As suggested here: "The quicker fix will probably be having a script somewhere in the filesystem that handles that logic." https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/236#note_2169234