unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Oliver <p.d.oliver@mavit.org.uk>
To: Manuel Uberti <manuel.uberti@inventati.org>
Cc: 49505@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#49505: 28.0.50; Multiple launchers in GNOME
Date: Tue, 10 Aug 2021 22:22:03 +0100 (BST)	[thread overview]
Message-ID: <2b12a676-2e15-1094-6525-4d11268912d@froglet.home.mavit.org.uk> (raw)
In-Reply-To: <87sg0mnn9o.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 2241 bytes --]

On Sat, 10 Jul 2021, Lars Ingebrigtsen wrote:

> Manuel Uberti <manuel.uberti@inventati.org> 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 <https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00648.html>, 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

  reply	other threads:[~2021-08-10 21:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-10 13:38 bug#49505: 28.0.50; Multiple launchers in GNOME Manuel Uberti
2021-07-10 14:48 ` Manuel Uberti
2021-07-10 16:31 ` Lars Ingebrigtsen
2021-08-10 21:22   ` Peter Oliver [this message]
2021-08-11  5:00     ` Manuel Uberti
2021-08-11 17:34       ` Peter Oliver
2021-08-11 17:52         ` Manuel Uberti
2021-10-09 11:19           ` Peter Oliver
2021-10-09 11:29             ` Lars Ingebrigtsen
2021-10-09 15:08               ` Manuel Uberti
2022-05-24 12:33                 ` Tim Ruffing
2022-05-24 13:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-24 14:10                     ` Tim Ruffing
2022-05-25  0:16                   ` Lars Ingebrigtsen
2022-06-20 19:13                   ` Peter Oliver
2022-09-20 12:19                     ` bug#49505: bug#51749: 29.0.50; Emacs 29 Creates Only Emacsclient Icon in Ubuntu Dock Lars Ingebrigtsen
2023-09-03  8:50                       ` Stefan Kangas
2021-08-11 11:10     ` bug#49505: 28.0.50; Multiple launchers in GNOME Lars Ingebrigtsen
2021-07-11 17:06 ` Manuel Uberti
2021-07-25  6:38 ` Manuel Uberti
2021-08-11 10:19   ` Utkarsh Singh
2021-10-04  5:38 ` Manuel Uberti
2021-10-04  9:34   ` Lars Ingebrigtsen
2021-10-07 11:21   ` Simen Heggestøyl
2021-10-07 18:10     ` Lars Ingebrigtsen
2021-10-08 13:02       ` Simen Heggestøyl
2021-10-09 11:18         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2b12a676-2e15-1094-6525-4d11268912d@froglet.home.mavit.org.uk \
    --to=p.d.oliver@mavit.org.uk \
    --cc=49505@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=manuel.uberti@inventati.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).