[Desktop-packages] [Bug 2092803] Re: GNOME dash not grouping snap application instances according to same WM_CLASS
** Changed in: gnome-shell (Ubuntu) Status: New => Invalid ** Changed in: snapd (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2092803 Title: GNOME dash not grouping snap application instances according to same WM_CLASS Status in gnome-shell package in Ubuntu: Invalid Status in snapd package in Ubuntu: Invalid Bug description: In some instances, the GNOME dash does not group different instances with the same wmclass. Tested with Ubuntu 24.04.1 LTS (GNOME Shell 46.0, snap/snapd 2.66.1+24.04) and confirmed on Ubuntu 24.10 To reproduce: - install rawtherapee snap -> sudo snap install rawtherapee - Pin to Dash the rawtherapee icon - Launch RawTherapee from the dash and see that the instance is given a new default application icon - expected behaviour ist that it's grouped under the colorful RawTherapee icon. I've attached an screenshot showing the problem. In the screenshot you see: 1. the RawTherapee icon is pined to the dash. I start the program from this icon. 2. an open RawTherapee window is grouped into a new group with the default icon instead of the icon group from 1. 3. the snap desktop file shows that RawTherapee will start with the wmclass=rawtherapee, thus I expect all instances with wmclass=rawtherapee to be grouped into the icon group 1. 4. GNOME looking glass indeed confirms that the RawTherapee instance has wmclass=rawtherapee, so why is it not grouped into 1.? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2092803/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 2092803] Re: GNOME dash not grouping snap application instances according to same WM_CLASS
I can confirm that the latest update does indeed solve the problem. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2092803 Title: GNOME dash not grouping snap application instances according to same WM_CLASS Status in gnome-shell package in Ubuntu: New Status in snapd package in Ubuntu: New Bug description: In some instances, the GNOME dash does not group different instances with the same wmclass. Tested with Ubuntu 24.04.1 LTS (GNOME Shell 46.0, snap/snapd 2.66.1+24.04) and confirmed on Ubuntu 24.10 To reproduce: - install rawtherapee snap -> sudo snap install rawtherapee - Pin to Dash the rawtherapee icon - Launch RawTherapee from the dash and see that the instance is given a new default application icon - expected behaviour ist that it's grouped under the colorful RawTherapee icon. I've attached an screenshot showing the problem. In the screenshot you see: 1. the RawTherapee icon is pined to the dash. I start the program from this icon. 2. an open RawTherapee window is grouped into a new group with the default icon instead of the icon group from 1. 3. the snap desktop file shows that RawTherapee will start with the wmclass=rawtherapee, thus I expect all instances with wmclass=rawtherapee to be grouped into the icon group 1. 4. GNOME looking glass indeed confirms that the RawTherapee instance has wmclass=rawtherapee, so why is it not grouped into 1.? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2092803/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 2092803] Re: GNOME dash not grouping snap application instances according to same WM_CLASS
Hi, thank you all for participating. I fixed the error. ❯ snap routine portal-info $(pdf rawtherapee) [Snap Info] InstanceName=rawtherapee AppName=rawtherapee DesktopFile=rawtherapee_rawtherapee.desktop CommonID=com.rawtherapee.RawTherapee HasNetworkStatus=false Now the grouping is working, as I see it -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2092803 Title: GNOME dash not grouping snap application instances according to same WM_CLASS Status in gnome-shell package in Ubuntu: New Status in snapd package in Ubuntu: New Bug description: In some instances, the GNOME dash does not group different instances with the same wmclass. Tested with Ubuntu 24.04.1 LTS (GNOME Shell 46.0, snap/snapd 2.66.1+24.04) and confirmed on Ubuntu 24.10 To reproduce: - install rawtherapee snap -> sudo snap install rawtherapee - Pin to Dash the rawtherapee icon - Launch RawTherapee from the dash and see that the instance is given a new default application icon - expected behaviour ist that it's grouped under the colorful RawTherapee icon. I've attached an screenshot showing the problem. In the screenshot you see: 1. the RawTherapee icon is pined to the dash. I start the program from this icon. 2. an open RawTherapee window is grouped into a new group with the default icon instead of the icon group from 1. 3. the snap desktop file shows that RawTherapee will start with the wmclass=rawtherapee, thus I expect all instances with wmclass=rawtherapee to be grouped into the icon group 1. 4. GNOME looking glass indeed confirms that the RawTherapee instance has wmclass=rawtherapee, so why is it not grouped into 1.? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2092803/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 2092803] Re: GNOME dash not grouping snap application instances according to same WM_CLASS
I only have a superficial knowledge of this subject, but I try to gather all the information I find. So hopefully this helps. It seems to me that RawTherapee is trying to conform to AppStream. I guess that the AppStream data file is the one from the RawTherapee repo: https://github.com/Beep6581/RawTherapee/blob/dev/com.rawtherapee.RawTherapee.appdata.xml It seems to me that the snap is created with the information provided there. The snap 'common-id' matches the AppStream 'id' -> com.rawtherapee.RawTherapee And the AppStream 'launchable' reads as 'rawtherapee.desktop', but at the same time the desktop file in 'snap/gui/' reads as com.rawtherapee.RawTherapee.desktop But now I'm confused what's the correct way to solve this. Is renaming the desktop file according to the string from AppStream->launchable the way to go? At least that's my interpretation from the snap documentation, which says that introducing a 'common-id' leads to "This will cause this app to use the .desktop launcher specified in the AppStream file." - that would be 'rawtherapee.desktop' -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2092803 Title: GNOME dash not grouping snap application instances according to same WM_CLASS Status in gnome-shell package in Ubuntu: New Status in snapd package in Ubuntu: New Bug description: In some instances, the GNOME dash does not group different instances with the same wmclass. Tested with Ubuntu 24.04.1 LTS (GNOME Shell 46.0, snap/snapd 2.66.1+24.04) and confirmed on Ubuntu 24.10 To reproduce: - install rawtherapee snap -> sudo snap install rawtherapee - Pin to Dash the rawtherapee icon - Launch RawTherapee from the dash and see that the instance is given a new default application icon - expected behaviour ist that it's grouped under the colorful RawTherapee icon. I've attached an screenshot showing the problem. In the screenshot you see: 1. the RawTherapee icon is pined to the dash. I start the program from this icon. 2. an open RawTherapee window is grouped into a new group with the default icon instead of the icon group from 1. 3. the snap desktop file shows that RawTherapee will start with the wmclass=rawtherapee, thus I expect all instances with wmclass=rawtherapee to be grouped into the icon group 1. 4. GNOME looking glass indeed confirms that the RawTherapee instance has wmclass=rawtherapee, so why is it not grouped into 1.? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2092803/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 2092803] Re: GNOME dash not grouping snap application instances according to same WM_CLASS
Slight correction from the analysis above, gnome-shell does not use DesktopFile from `snap routine portal-info $(pidof rawtherapee)` (yet), but uses `/proc/$(pidof rawtherapee)/attr/current` instead. `/proc/$(pidof rawtherapee)/attr/current` reads out as `snap.rawtherapee.rawtherapee` which is mangled into `rawtherapee_rawtherapee` and used as desktop filename. Instead, the desktop filename is "rawtherapee_com.rawtherapee.RawTherapee.desktop" which does not match, so gnome-shell refuses it as intended. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2092803 Title: GNOME dash not grouping snap application instances according to same WM_CLASS Status in gnome-shell package in Ubuntu: New Status in snapd package in Ubuntu: New Bug description: In some instances, the GNOME dash does not group different instances with the same wmclass. Tested with Ubuntu 24.04.1 LTS (GNOME Shell 46.0, snap/snapd 2.66.1+24.04) and confirmed on Ubuntu 24.10 To reproduce: - install rawtherapee snap -> sudo snap install rawtherapee - Pin to Dash the rawtherapee icon - Launch RawTherapee from the dash and see that the instance is given a new default application icon - expected behaviour ist that it's grouped under the colorful RawTherapee icon. I've attached an screenshot showing the problem. In the screenshot you see: 1. the RawTherapee icon is pined to the dash. I start the program from this icon. 2. an open RawTherapee window is grouped into a new group with the default icon instead of the icon group from 1. 3. the snap desktop file shows that RawTherapee will start with the wmclass=rawtherapee, thus I expect all instances with wmclass=rawtherapee to be grouped into the icon group 1. 4. GNOME looking glass indeed confirms that the RawTherapee instance has wmclass=rawtherapee, so why is it not grouped into 1.? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2092803/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 2092803] Re: GNOME dash not grouping snap application instances according to same WM_CLASS
James, is the rawtherapee snap doing something wrong, or is this a snapd bug? I see it does not specify apps: rawtherapee: desktop: <> in snap/manifest.yaml, but still it has an entry at `/var/lib/snapd/desktop/applications/rawtherapee_com.rawtherapee.RawTherapee.desktop` so snapd is at least aware of a desktop file. ** Also affects: snapd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2092803 Title: GNOME dash not grouping snap application instances according to same WM_CLASS Status in gnome-shell package in Ubuntu: New Status in snapd package in Ubuntu: New Bug description: In some instances, the GNOME dash does not group different instances with the same wmclass. Tested with Ubuntu 24.04.1 LTS (GNOME Shell 46.0, snap/snapd 2.66.1+24.04) and confirmed on Ubuntu 24.10 To reproduce: - install rawtherapee snap -> sudo snap install rawtherapee - Pin to Dash the rawtherapee icon - Launch RawTherapee from the dash and see that the instance is given a new default application icon - expected behaviour ist that it's grouped under the colorful RawTherapee icon. I've attached an screenshot showing the problem. In the screenshot you see: 1. the RawTherapee icon is pined to the dash. I start the program from this icon. 2. an open RawTherapee window is grouped into a new group with the default icon instead of the icon group from 1. 3. the snap desktop file shows that RawTherapee will start with the wmclass=rawtherapee, thus I expect all instances with wmclass=rawtherapee to be grouped into the icon group 1. 4. GNOME looking glass indeed confirms that the RawTherapee instance has wmclass=rawtherapee, so why is it not grouped into 1.? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2092803/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 2092803] Re: GNOME dash not grouping snap application instances according to same WM_CLASS
snaps are only allowed to match the desktop file they provide, so StartupWMClass does not actually matter. For rawtherapee, it seems that snapd is unable to determine its desktop file: $ snap routine portal-info $(pidof rawtherapee) [Snap Info] InstanceName=rawtherapee AppName=rawtherapee DesktopFile=. CommonID=com.rawtherapee.RawTherapee HasNetworkStatus=false ** No longer affects: gnome-shell-extension-desktop-icons-ng (Ubuntu) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2092803 Title: GNOME dash not grouping snap application instances according to same WM_CLASS Status in gnome-shell package in Ubuntu: New Bug description: In some instances, the GNOME dash does not group different instances with the same wmclass. Tested with Ubuntu 24.04.1 LTS (GNOME Shell 46.0, snap/snapd 2.66.1+24.04) and confirmed on Ubuntu 24.10 To reproduce: - install rawtherapee snap -> sudo snap install rawtherapee - Pin to Dash the rawtherapee icon - Launch RawTherapee from the dash and see that the instance is given a new default application icon - expected behaviour ist that it's grouped under the colorful RawTherapee icon. I've attached an screenshot showing the problem. In the screenshot you see: 1. the RawTherapee icon is pined to the dash. I start the program from this icon. 2. an open RawTherapee window is grouped into a new group with the default icon instead of the icon group from 1. 3. the snap desktop file shows that RawTherapee will start with the wmclass=rawtherapee, thus I expect all instances with wmclass=rawtherapee to be grouped into the icon group 1. 4. GNOME looking glass indeed confirms that the RawTherapee instance has wmclass=rawtherapee, so why is it not grouped into 1.? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2092803/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 2092803] Re: GNOME dash not grouping snap application instances according to same WM_CLASS
** Tags added: noble oracular ** Also affects: gnome-shell-extension-desktop-icons-ng (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2092803 Title: GNOME dash not grouping snap application instances according to same WM_CLASS Status in gnome-shell package in Ubuntu: New Status in gnome-shell-extension-desktop-icons-ng package in Ubuntu: New Bug description: In some instances, the GNOME dash does not group different instances with the same wmclass. Tested with Ubuntu 24.04.1 LTS (GNOME Shell 46.0, snap/snapd 2.66.1+24.04) and confirmed on Ubuntu 24.10 To reproduce: - install rawtherapee snap -> sudo snap install rawtherapee - Pin to Dash the rawtherapee icon - Launch RawTherapee from the dash and see that the instance is given a new default application icon - expected behaviour ist that it's grouped under the colorful RawTherapee icon. I've attached an screenshot showing the problem. In the screenshot you see: 1. the RawTherapee icon is pined to the dash. I start the program from this icon. 2. an open RawTherapee window is grouped into a new group with the default icon instead of the icon group from 1. 3. the snap desktop file shows that RawTherapee will start with the wmclass=rawtherapee, thus I expect all instances with wmclass=rawtherapee to be grouped into the icon group 1. 4. GNOME looking glass indeed confirms that the RawTherapee instance has wmclass=rawtherapee, so why is it not grouped into 1.? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2092803/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp