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, 06 Feb 2024 07:36:39 +0800 Message-ID: <87sf26fpbq.fsf@linj.tech> References: <87eddzlpan.fsf@linj.tech> <86plxj2eu9.fsf@gnu.org> <87sf2ekisb.fsf@linj.tech> <868r463nle.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="20870"; 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 Feb 06 00:46:20 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 1rX8fM-0005Au-Km for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Feb 2024 00:46:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rX8f3-0004fy-Ky; Mon, 05 Feb 2024 18:46:01 -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 1rX8es-0004fQ-W5 for bug-gnu-emacs@gnu.org; Mon, 05 Feb 2024 18:45:52 -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 1rX8er-0006CI-4N for bug-gnu-emacs@gnu.org; Mon, 05 Feb 2024 18:45:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rX8f3-0007Pn-K4 for bug-gnu-emacs@gnu.org; Mon, 05 Feb 2024 18:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lin Jian Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Feb 2024 23:46:01 +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.170717674528478 (code B ref 68807); Mon, 05 Feb 2024 23:46:01 +0000 Original-Received: (at 68807) by debbugs.gnu.org; 5 Feb 2024 23:45:45 +0000 Original-Received: from localhost ([127.0.0.1]:52825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rX8en-0007PG-0t for submit@debbugs.gnu.org; Mon, 05 Feb 2024 18:45:45 -0500 Original-Received: from mail.linj.tech ([5.255.109.209]:37020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rX8el-0007P6-3B for 68807@debbugs.gnu.org; Mon, 05 Feb 2024 18:45:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linj.tech; s=mail; t=1707176728; bh=gLVvhQYkEI8jJsLn8kT2iWgDJ+p7KMZTv3a08kkSIw0=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=HPUa8OOUHcO1tmIE0TwyFKsXUcrQ8aHz46iDZxGSmcxhYXkwuWCzy/mqMdTDjT+yS iPo2rxY+Incp7lruE4D94S52Z9B2prol+bUr740mKwUufG7kC1LxURovdUDkNZIxg1 ly9AiXiCLNLGpyHaI3sLevEyYhuhapte8UBp7QWMAM7jrDf58bqfxVTxqWIdG+qcdr QV7W7hJ08d4mEwmRfac9CGgc4BXOj6AFNxwN9I71XV2CDY+8xdLZRC/sHLujbzT7R7 lm1f5pKOc9JzbXCID4xZBvyH1aEtp7VtmE7ghRbQ7K1YpE8xNYw38GJWKMOHZDTNKY e/yBsL+9Xe6Mg== In-reply-to: <868r463nle.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:279468 Archived-At: Eli Zaretskii writes: >> From: Lin Jian >> Cc: 68807@debbugs.gnu.org >> Date: Tue, 30 Jan 2024 22:08:47 +0800 >> >> >> 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? > > I don't know, but people have been committing changes to these files > for many moons, so I guess there is some reason. If you are really > interested, try looking at the Git history of that, and then look up > discussions here or on emacs-devel near the times of the changes. > The first patch introducing bindir to *.desktop files is [1]. However, there is no motivation nor discussion of the bindir usage. >> Is this a bug? > > Not likely, because this is AFAIK used by many users and distros. I should have stated more clearly. This is not that kind of bug which causes problems when you run Emacs. The unnecessary usage of bindir in etc/emacsclient.desktop and etc/emacsclient-mail.desktop is inconsistent with etc/emacs.desktop, which causes confusion for future readers of Makefile.in. [1]: https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=37847&submit=Search%21&idxname=bug-gnu-emacs&max=20&result=normal&sort=date%3Aearly