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.help Subject: Re: Help me understand the exec entry in emacsclient.desktop Date: Sun, 17 Dec 2023 00:58:18 +0000 Message-ID: <87le9tprmk.fsf@posteo.de> References: <20231202033737.792a9e7a@enous-devuan> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40376"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: aprekates@posteo.net Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 17 07:14:26 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 1rEkPy-000AIB-TI for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Dec 2023 07:14:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEkOf-0001eN-CP; Sun, 17 Dec 2023 01:13:05 -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 1rEfdh-0005sI-36 for help-gnu-emacs@gnu.org; Sat, 16 Dec 2023 20:08:17 -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 1rEfdf-00050h-3l for help-gnu-emacs@gnu.org; Sat, 16 Dec 2023 20:08:16 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BD1C4240101 for ; Sun, 17 Dec 2023 02:08:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1702775291; bh=azHWWQ6eEiCKgOum3J/CcFJ7xy/Lnd96cJA5OHSE2Bc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Af/AxlTBATbWUVRNAnS0fJP689a7ke12MCN1uqQdp3EpAOB6QlmpizAAx/wOAOJ33 COFnSaXXW8Xc3PlvaUDRVpZynawCFtDEsdoB0P+zshLDLSmJcgMWDnZ//BBL2NIJAZ Y9/oMQQWJ+lywjFjgLhJn7TexvY49g5PDOtIuW3MaIraXWT6TVIl1beHYFTIeBXqRX WAW8cOrqsN/Odehekh8viI0GPNxg0tSierxeGpZooPAdRNZMfjetUK0Aw9e7jNw0xP j16T6vGNtrvxyFsUoKHC5f/oJPLEp8EyyiT9TePgnfGzUBd3mwvsUXT1FIwxRSMqoM wFsvn2AltXf7Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4St4Zf6p7Wz6tm4; Sun, 17 Dec 2023 02:08:10 +0100 (CET) In-Reply-To: <20231202033737.792a9e7a@enous-devuan> Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; 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-Mailman-Approved-At: Sun, 17 Dec 2023 01:13:03 -0500 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:145654 Archived-At: I recently started a discussion on emacsclient.desktop's Exec entry here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67736 To precisely answer your question, the current Exec line does this: emacsclient.desktop start emacsclient, and if there's no daemon running, it'll start one. This is what --alternate-editor= is for. Additionally: If emacsclient.desktop is applied on one or more files, then it'll try to reuse one of the frames, if I understand correctly. Otherwise, i.e. if you're invoking emacsclient.desktop without any files passed to it, e.g. by clicking its icon in your app-launcher, it'll create a frame. For me, personally, the Exec entry does not work but fails with an error related to quoting. Please share your experience in the mentioned bug-report.