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#62747: 29.0.90; Invalid desktop file Date: Mon, 10 Apr 2023 16:34:33 +0300 Message-ID: <83o7nvc13q.fsf@gnu.org> References: <87mt3gccj1.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62747@debbugs.gnu.org To: Andreas Schwab , Ulrich =?UTF-8?Q?M=C3=BCller?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 10 15:35:25 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 1plrg4-0008NC-91 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Apr 2023 15:35:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plrfj-0007Fv-Hs; Mon, 10 Apr 2023 09:35:03 -0400 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 1plrfh-0007Fj-Fr for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 09:35:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1plrfh-0008Uj-7a for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 09:35:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1plrfg-0001gC-T3 for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 09:35:00 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Apr 2023 13:35:00 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62747 X-GNU-PR-Package: emacs Original-Received: via spool by 62747-submit@debbugs.gnu.org id=B62747.16811336426365 (code B ref 62747); Mon, 10 Apr 2023 13:35:00 +0000 Original-Received: (at 62747) by debbugs.gnu.org; 10 Apr 2023 13:34:02 +0000 Original-Received: from localhost ([127.0.0.1]:34584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plrej-0001eU-9b for submit@debbugs.gnu.org; Mon, 10 Apr 2023 09:34:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plreh-0001eG-R0 for 62747@debbugs.gnu.org; Mon, 10 Apr 2023 09:34:00 -0400 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 1plreb-0008Mw-Jc; Mon, 10 Apr 2023 09:33:53 -0400 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=++1t+HpUSLFJJwG+i+7rPchM7zkZ5AmfuKNBF370e50=; b=HSe7xCOAqSg1Z44ITnRF AmV5E61g9wLSjAZ8qS8arC5qg0h7WrWNV/+HT92G44UUMsF+prbR8l7oqbapWL9rAe5qjcuhMLhmu h4zKv+8m8u9EPIhbJb88QtHVI45P3ddBI9cFnUTdUEETv9PqBlzyolKrdAfegshIr+wzU8+agQZ2e D14PdM3Qv0lnebpbKu5bhwLGnhWCxE7bBEBQHCxwah6W62hu16+JKCZpiknQ82RryeN4OzVF/3oM3 NyTjokZEjvqHLevlUc3ap/eog2BoQlLc7+Qv35gv+4nif6QD9Wp75WkDjKU+NtrHaAS4ZCdN/pA19 G6yOqTLaJBgMwA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plrea-0003s9-Tv; Mon, 10 Apr 2023 09:33:53 -0400 In-Reply-To: <87mt3gccj1.fsf@igel.home> (message from Andreas Schwab on Mon, 10 Apr 2023 11:27:46 +0200) 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:259575 Archived-At: > From: Andreas Schwab > Date: Mon, 10 Apr 2023 11:27:46 +0200 > > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Action new-window" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$") > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Action new-window" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$") > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Action new-window" contains a quote which is not closed > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Action new-window" contains a reserved character '&' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Action new-window" contains a reserved character ''' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Action new-window" contains a reserved character ')' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Action new-window" contains a reserved character ';' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Entry" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$") > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Entry" contains a quote which is not closed > invalid-desktopfile /usr/share/applications/emacsc > c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Entry" contains a reserved character '&' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Entry" contains a reserved character ''' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Entry" contains a reserved character '(' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Entry" contains a reserved character ')' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient-mail.desktop value "sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u" for key "Exec" in group "Desktop Entry" contains a reserved character ';' outside of a quote > invalid-desktopfile /usr/share/applications/emacsclient.desktop value "sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F" for key "Exec" in group "Desktop Entry" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$") > invalid-desktopfile /usr/share/applications/emacsclient.desktop value "sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F" for key "Exec" in group "Desktop Entry" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$") > invalid-desktopfile /usr/share/applications/emacsclient.desktop value "sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F" for key "Exec" in group "Desktop Entry" contains a quote which is not closed > invalid-desktopfile /usr/share/applications/emacsclient.desktop value "sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F" for key "Exec" in group "Desktop Entry" contains a reserved character '$' outside of a quote Thanks. Ulrich, could you please look into this?