From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Oliver Newsgroups: gmane.emacs.bugs Subject: bug#49505: 28.0.50; Multiple launchers in GNOME Date: Tue, 10 Aug 2021 22:22:03 +0100 (BST) Message-ID: <2b12a676-2e15-1094-6525-4d11268912d@froglet.home.mavit.org.uk> References: <87sg0mnn9o.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811583-1526873792-1628630524=:3545" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4549"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49505@debbugs.gnu.org, Lars Ingebrigtsen To: Manuel Uberti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 10 23:23:21 2021 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 1mDZDV-0000zW-6S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 23:23:21 +0200 Original-Received: from localhost ([::1]:36090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDZDT-0007b4-UV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 17:23:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDZDC-0007aU-Ud for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 17:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49407) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDZDC-0001IR-L3 for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 17:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDZDC-0000Xj-Ev for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 17:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Oliver Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Aug 2021 21:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49505 X-GNU-PR-Package: emacs Original-Received: via spool by 49505-submit@debbugs.gnu.org id=B49505.16286305432028 (code B ref 49505); Tue, 10 Aug 2021 21:23:02 +0000 Original-Received: (at 49505) by debbugs.gnu.org; 10 Aug 2021 21:22:23 +0000 Original-Received: from localhost ([127.0.0.1]:60953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDZCU-0000WY-Jr for submit@debbugs.gnu.org; Tue, 10 Aug 2021 17:22:22 -0400 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:39687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDZCO-0000W9-Hm for 49505@debbugs.gnu.org; Tue, 10 Aug 2021 17:22:17 -0400 Original-Received: by mail-wm1-f41.google.com with SMTP id f9-20020a05600c1549b029025b0f5d8c6cso2888823wmg.4 for <49505@debbugs.gnu.org>; Tue, 10 Aug 2021 14:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=xH9Nv/1cD3nfaf6L6cpFEILu47CBZBPtv1WeIQqqPpw=; b=Oa6PTz0z8p7JzsIqLSRBYqmiB19FR3/cEhvbL2XslmTgMA4foagYvTbihiaQ++oCYY Ih17WjHhHtH+c+Hf8KJcLMIxL72DBcTGxtGaPYQg7ZhLJEiJODFhZtIBxuW4wspaIZBr 29Cwt0zYJ2oxL7NnQMkE3+Y6ufk/5/auGWGsU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=xH9Nv/1cD3nfaf6L6cpFEILu47CBZBPtv1WeIQqqPpw=; b=cfCfYBuOO3ocMgGk9kBYbF5UGajYdLiabYSZGcQTmlWbAUuTiuwgL5Uiw3VhjOWwNf mtylKweUvgZmnl8t1F9IAcVIq6tCsyp9hd3gdN1H7RfPv7TFGSmVfV0Jj5IBQUU/YohP qR8A4SAaEMwDM+DBw1jM0OtbWDBVJQXT+hL7xRTK1JTlDHzdKi777tik+VQVh/h6wvMt HlyekHu28K+EZkdm+cnLTznCtmt5NcT8KWJoGioZqMw27rzDo+rk1bNRcA4gCm/uDCxw lkCnG0cKldcyIFFhapJWd16QOoYMEWEPButSs7XSWgIxGTdQJp1UBGJKdNzAAB9iXNBz if/Q== X-Gm-Message-State: AOAM533omJdyOnbWEI0SlE8n20iCmhKMcdn+RpDPXNh3S77wwEGOXIsY Mb8RYs0jMxOOMuhbCwm73vVilA== X-Google-Smtp-Source: ABdhPJxlFBQiP+cmPx0d4BPQoFGvPddTHCPtzIvC64yE9rMG/ccASLFZFF0ruoq01TEioiunip5Wzw== X-Received: by 2002:a05:600c:4784:: with SMTP id k4mr6700346wmo.166.1628630526772; Tue, 10 Aug 2021 14:22:06 -0700 (PDT) Original-Received: from froglet.home.mavit.org.uk (cpc118948-dudl14-2-0-cust32.16-1.cable.virginm.net. [82.37.201.33]) by smtp.gmail.com with ESMTPSA id e3sm25078442wrv.65.2021.08.10.14.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 14:22:06 -0700 (PDT) Original-Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.16.1/8.15.2) with ESMTPS id 17ALM477018868 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 10 Aug 2021 22:22:04 +0100 Original-Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.16.1/8.16.1/Submit) with ESMTP id 17ALM3Kh018864; Tue, 10 Aug 2021 22:22:03 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs In-Reply-To: <87sg0mnn9o.fsf@gnus.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" Xref: news.gmane.io gmane.emacs.bugs:211542 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-1526873792-1628630524=:3545 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Sat, 10 Jul 2021, Lars Ingebrigtsen wrote: > Manuel Uberti writes: > >> I built Emacs master (commit: 3fa711c11d1497418fdf8a866b7ba52dd3b00e0e) >> and now I see two launchers (.desktop files) in GNOME: >> >> - Emacs >> - Emacs (Client) >> >> The first one is the one I added to my favourites in GNOME, thus it's >> the launcher I've always used in my GNOME dash panel to launch >> Emacs. See attachment 1.png. >> >> However, this launcher now always spawns a new Emacs (Client), >> resulting in two Emacs icons in my GNOME dash. See attachment 2.png. > > I think this might be due to the recent changed here by Peter (added to > the CCs). Yes, I think this will be caused by the fix to bug 49259. > For now, I see that by doing the following I only get one launcher in the Dash > panel: > > - Add Emacs (Client) to favourites > - Right-click on it > - Select New Instance > > I don't know if this is what Peter had in mind for the user to do, though. Pretty much, yes. You should be able to use emacsclient.desktop for everything. By the way, if you’re launching Emacs for the first time in a session, you shouldn’t need to right-click and select New Instance. Left clicking should cause a new instance to run if there is no existing instance. The duplicate icons are annoying, though. It’s my view that we should provide only one .desktop file (namely emacsclient.desktop, renamed to emacs.desktop). However, when this was discussed at , consensus was not reached. It’s my suspicion that implementing the Freedesktop.org startup notification protocol in emacsclient, as proposed in bug 49504, would also cause this issue to go away, because the desktop would be able to identify which window was opened as a result of clicking on which icon. However, that seems controversial, too. I’m not sure what else to suggest. We can revert the fix to 49259 (or, more sensibly, remove StartupWMClass from emacsclient.desktop entirely), but that doesn’t really help, since it’d cause the opposite problem that people who favourite “Emacs (Client)” would end up with a duplicate “Emacs” icon. -- Peter Oliver ---1463811583-1526873792-1628630524=:3545--