From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lin Jian via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68807: 29.1; Can bindir used for emacsclient(-mail).desktop in Makefile.in be removed? Date: Tue, 30 Jan 2024 22:08:47 +0800 Message-ID: <87sf2ekisb.fsf@linj.tech> References: <87eddzlpan.fsf@linj.tech> <86plxj2eu9.fsf@gnu.org> Reply-To: Lin Jian Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30568"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68807@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 30 15:18:31 2024 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 1rUowY-0007jA-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jan 2024 15:18:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUow4-0007cc-Cy; Tue, 30 Jan 2024 09:18:00 -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 1rUovy-0007Wj-Vg for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 09:17:56 -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 1rUovy-0007ID-9x for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 09:17:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUow6-0005No-5e for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 09:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lin Jian Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jan 2024 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68807 X-GNU-PR-Package: emacs Original-Received: via spool by 68807-submit@debbugs.gnu.org id=B68807.170662425420652 (code B ref 68807); Tue, 30 Jan 2024 14:18:02 +0000 Original-Received: (at 68807) by debbugs.gnu.org; 30 Jan 2024 14:17:34 +0000 Original-Received: from localhost ([127.0.0.1]:34693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUovd-0005N1-Ut for submit@debbugs.gnu.org; Tue, 30 Jan 2024 09:17:34 -0500 Original-Received: from mail.linj.tech ([5.255.109.209]:56080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUovc-0005Ms-1I for 68807@debbugs.gnu.org; Tue, 30 Jan 2024 09:17:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linj.tech; s=mail; t=1706624241; bh=0rRH5Y9fFsYdf5TeU1bfmAE4g0QreyFwsEdC8KbZGVY=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=gTFP3azny01yBWNbnlcpMDnSOoQpWkeR5RKw+Gy8oaynaQjLy7+W1BJ3QtaHl84+t 2d/M+fEaKwPrc4+rK+MGKbI5FpLSrHn7G0P3zN2gZjutYJ5sB+Ri1IXbTUZlInIPB1 FPefq11YGjmy7AxWcryJVsGjjgTuCKcwRVluavjsVRCgx2L/XpdR9e9PIVgR6JaYAj Wd9m+XotdXn/AsG38zCB0+7ZeD3GpPHBGgH62BP+P39KMqpd09cLVSrNBE3LlORas/ dy4psWQmYjyClovZUrYIBKnH+DIPFEyysr7l7/Uh8O8ErGX5oF35fAT0ik/hMsmvp3 S0qEgmMZkVPTQ== In-reply-to: <86plxj2eu9.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:279181 Archived-At: Eli Zaretskii writes: > Yes, because the Emacs's upstream installation procedure installs > emacsclient in ${bindir}. So "our "make install" wants to make sure > the desktop file will reference the correct emacsclient, not the one > found first on PATH. Since (I think) emacs and emacsclient are installed to the same directory, why is not bindir used for emacs in *.desktop files? Why are emacs and emacsclient treated differently in *.desktop files? Is this a bug? The related code is as follows: sed -e "/^Exec=emacs/ s/emacs/${EMACS_NAME}/" sed -e "/^Exec=/ s|emacsclient|${bindir}/$${client_name}|" > My understanding is that you are asking this because some downstream > distro will find it more convenient for its users. If so, why cannot > the distro modify the top-level Makefile.in according to what you > prefer? There's no need to propagate distro-specific solutions to the > upstream project, is there? > > Since different distros can have different needs and preferences, I'd > prefer not to make changes in the setup of the desktop files we > distribut in favor of one particular distro. We distribute these > desktop files as a service to distros, and would not want to take > responsibility for understanding the needs of the various distros and > desktops, so as not to increase our maintenance burden in areas where > we have no real domain expertise. Makes senses.