From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandros Prekates Newsgroups: gmane.emacs.help Subject: Help me understand the exec entry in emacsclient.desktop Date: Sat, 2 Dec 2023 01:37:47 +0000 Message-ID: <20231202033737.792a9e7a@enous-devuan> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/528vwncfRqeRTRdmZh/XQ1J"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4620"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 02 02:38:59 2023 Return-path: Envelope-to: geh-help-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 1r9EyA-00010Z-7F for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Dec 2023 02:38:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9ExS-0006rm-9g; Fri, 01 Dec 2023 20:38:15 -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 1r9ExO-0006rP-KF for help-gnu-emacs@gnu.org; Fri, 01 Dec 2023 20:38:11 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9ExJ-00042G-EX for help-gnu-emacs@gnu.org; Fri, 01 Dec 2023 20:38:08 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A2D09240101 for ; Sat, 2 Dec 2023 02:37:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701481079; bh=yhcK+4b5GA/MMs3NBSER6qYm8deF7iOp7mQBYJei6eI=; h=Date:From:To:Subject:Message-ID:MIME-Version:From; b=QEloRLWS9D0F3QuHplqtTOS16AuJwnK7LtiQTJb3VC/XHPkRcTicbt1dk/H/JIXDJ qSKWMeyLkKWrl/XCKVMlJjmHC/qNw27GHnyCqQ7v9tKYUjIzYHXDr0hBv1PjmG5Owa 6PBPqWgDqjLCJ58qQAeY+9+4geyQdCgSMkd4/j0wP2A7/aD+/HkW0vAvyOCVYhO5cR Pqo3DiR8vpJi+wlN3meriIaEbYv+aeu60mUPNphfAO4+iICi1pmLBQ+EN54AgL/A0C K+8Tx88qZ5gQr39voXd43bw3Kh4oOExwFOjFa/WsG3DGb55xmTBaAOyvFmqLRM0e05 mvNlLETOnJCHQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Shsxz0n7Tz6tvc for ; Sat, 2 Dec 2023 02:37:59 +0100 (CET) Received-SPF: pass client-ip=185.67.36.66; envelope-from=aprekates@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145601 Archived-At: --Sig_/528vwncfRqeRTRdmZh/XQ1J Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable That is the entry: Exec=3Dsh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor=3D --display=3D\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor=3D --create-frame; fi" My interpretation so far is: If files where given as arguments then start in a certain display and use the current opened frame . If files were not given then create a new frame. But it doesnt make much sense to me. Also why sh %F and not %F ? And why in the latter case display is not being set ? Alexandros. --Sig_/528vwncfRqeRTRdmZh/XQ1J Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEEFtn7akTkRw+xiXSCyX9egRtW1WYFAmVqimsACgkQyX9egRtW 1Wb4awv+NARGG5OVMf4p+mYjiQ4HoTqHuX21sART00zFRyQ975cev/62P2loH2VF g3Ys8haELp90dXjmTvs7FCn1r5HFWfDAPNaXJSSHMVkDXkmGo5qek94oje7FTaAG 91yqQ4MSAXydvDz2DDVCBArSovTPLkwBY5iBI+Pq+KMQ/dF9MkeVISOVxPdBb1JD 3UNoGdQRiIAw3bDS/6bbrB6yf0LaqmoO5D7kCs9pQPpeGXSAurhp0Mwrv0muUE48 evzlM3Qf5VjVtLhbmOi7YpKObEtPkIx1L6hMKS/1u5zXKUGMKCpgU5G+aYihlvfe 2Gy8dkv6LIMwbIVlt3femFTZAnmLptUZrSQX7CwjHTX+cAieYeyDpNjatTMqUv3F 1jJjcow40XYcS3uWoibV/vZtmA3n29XPibPnz8iAlJDZNAacjplNrPMv3K5QISMB QaWuG6CD7GvvMZHwoSkexG8CtpjuDfUzCyPwD0QbLig8XmBGWDWoty7oZPiH4ku+ 3Yb5pf/W =XkZb -----END PGP SIGNATURE----- --Sig_/528vwncfRqeRTRdmZh/XQ1J--