#1117125 pan: additional app icon appears in wmaker despite pan being present in the Clip

Package:
pan
Source:
pan
Description:
newsreader based on GTK3, which looks like Forte Agent
Submitter:
Yavor Doganov
Date:
2025-10-06 12:47:04 UTC
Severity:
normal
#1117125#5
Date:
2025-10-03 11:08:21 UTC
From:
To:
I use Window Maker (bin:wmaker) and have pan added to the Clip on
Workspace #4.  Since a few upstream releases (I can't tell exactly
because I thought initially it was a local glitch) starting pan leads to
the appearance of an additional pan icon at the bottom left corner that
is present on all workspaces -- just like if I start a program that is
not in the Dock and/or the Clip.

The normal behavior is not to show this additional icon, and to have
pan's icon that is attached to the Clip only on Workspace #4 (greyed out
if the program is running).

This change looks suspicious:

pan (0.163-1) unstable; urgency=medium

  * new upstream version
    - Fix Pan window icon in Wayland (Balló György).

I don't use Wayland, though.

#1117125#10
Date:
2025-10-03 11:15:55 UTC
From:
To:
Yavor Doganov wrote:

Yes, that's it.  I cannot reproduce with pan/0.162-1.

#1117125#17
Date:
2025-10-05 08:34:46 UTC
From:
To:
This change was quite small:

https://gitlab.gnome.org/GNOME/pan/-/commit/ac05c74e99a66fbf14ddc44346f3f3fd7ce5f471

The change in pan.cc was done to match the Icon name in the desktop file.

Could you try to change the content of /usr/share/applications/org.gnome.pan.desktop to
 add back "StartupWMClass=pan" line ?

All the best

#1117125#22
Date:
2025-10-05 09:03:42 UTC
From:
To:
Dominique Dumont wrote:

Changing the .desktop file has no effect.  But if I rebuild pan with
the call to g_set_prgname in pan.cc removed, the additional icon
disappears.

I just noticed that hovering the mouse over the pan icon that is
attached to the Clip shows the following tooltip:

1 Pan
(pan)

That's with the above change.  If I reinstall pan/0.164-1 from the
archive, it shows

pan
(pan)

and the tooltip of the extra icon is

org.gnome.pan
(org.gnome.pan)

It looks like for wmaker pan and org.gnome.pan are two separate
programs :(

#1117125#27
Date:
2025-10-05 11:04:41 UTC
From:
To:
ok, it may be that pan's current icon name is not standard.

 ok, then try to change the Icon name in desktop file to "pan" instead of
"org.gnome.pan" and leave out the call to g_set_prgname in pan.cc.

HTH

#1117125#32
Date:
2025-10-06 12:45:09 UTC
From:
To:
Dominique Dumont wrote:

There is no effect; the extra icon still appears.

I made another experiment -- I started pan from a terminal and added
its icon to the Clip at Workspace #1.  Then quit pan and tried to
start it again by double-clicking the icon -- it showed error "Cannot
execute the command org.gnome.pan" (translation approximate; I use
Bulgarian locale).  Not good.  I changed the path to "pan" and it
works, so there's an easy workaround.

Two other GTK programs that I regularly use (gnome-terminal and
evolution) have exactly the same problem but apparently I changed the
path in the settings long time ago and forgot.

Reassigning the bug as there's nothing to be fixed in pan; it is
merely following the advice to set application-id as documented in
GLib/GTK.  I also raise the severity to "normal" as ideally Window
Maker should not create docked applications that cannot be launched.