[Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
I can't reproduce anymore on 17.10, keepassx-elopio is now associated with the correct icon, even though the StartupWMClass in their desktop file is still incorrect. ** Changed in: snappy Status: New => Fix Released ** Changed in: gnome-shell-extension-ubuntu-dock (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
@jesse: Your bug is a different one, please open a new bug report for that one. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
@jesse: I reported it here: https://bugs.launchpad.net/ubuntu/+source /gnome-shell-extension-ubuntu-dock/+bug/1723355 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
@Merlijn, I don't think there's a way for snapd to know the WMClass of an app in a snap. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
I'm also experiencing a similar issue: left-click+dragging an app icons (snap or traditional package) to the Ubuntu dock to favorite it adds two shortcut instances instead of one. Performing this for gedit produces two favorite shortcuts, everytime. Bug discovered on Ubuntu 17.10 beta 2. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
That makes sense. I did some digging, `StartupWMClass` is a freedesktop standard [1], so it seems a good DE-agnostic way to fix this issue. The `BAMF_DESKTOP_FILE_HINT` isn't set by the app developer [2], it's put there by snapd [3]. Thus, the correct place to fix this seems to be that place; add another rewrite rule that adds `StartupWMClass=` to the desktop file. What do you think of this solution, @chipaca? [you seem the right person to ask this given you wrote the BAMF code ;)]. [1] https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html [2] https://github.com/keepassxreboot/keepassxc/blob/develop/snap/gui/keepassxc.desktop [3] https://github.com/snapcore/snapd/blob/f5c93b549692b377343ffb0757e1f6c0efafeb9d/wrappers/desktop.go#L109 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
bamfdaemon is a unity thing, i believe On 28 September 2017 at 08:24, Merlijn Sebrechts wrote: > Easy to test with keepassx, both available in software center (keepassx) > and as a snap (keepassx-elopio) > > > I can confirm that setting `StartupWMClass=keepassx-elopio_keepassx` in > `/var/lib/snapd/desktop/applications/keepassx-elopio_keepassx.desktop` > fixes the issue. > > However, the snap's desktop file already includes the > `BAMF_DESKTOP_FILE_HINT`: `Exec=env > BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/keepassx- > elopio_keepassx.desktop /snap/bin/keepassx-elopio.keepassx %U` > > Why is this not working? Is BAMF a unity-only thing? > > -- > You received this bug notification because you are a member of Snappy > Developers, which is subscribed to Snappy. > https://bugs.launchpad.net/bugs/1718942 > > Title: > running favorited snap shows two icons in Ubuntu dock > > To manage notifications about this bug go to: > https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
Easy to test with keepassx, both available in software center (keepassx) and as a snap (keepassx-elopio) I can confirm that setting `StartupWMClass=keepassx-elopio_keepassx` in `/var/lib/snapd/desktop/applications/keepassx-elopio_keepassx.desktop` fixes the issue. However, the snap's desktop file already includes the `BAMF_DESKTOP_FILE_HINT`: `Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/keepassx- elopio_keepassx.desktop /snap/bin/keepassx-elopio.keepassx %U` Why is this not working? Is BAMF a unity-only thing? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
I don't know which app you're testing this with, but I suspect it needs to add a StartupWMClass entry in its .desktop file On 28 September 2017 at 03:49, Merlijn Sebrechts wrote: > ** Tags added: artful > > ** Also affects: gnome-shell-extension-ubuntu-dock (Ubuntu) >Importance: Undecided >Status: New > > -- > You received this bug notification because you are a member of Snappy > Developers, which is subscribed to Snappy. > https://bugs.launchpad.net/bugs/1718942 > > Title: > running favorited snap shows two icons in Ubuntu dock > > To manage notifications about this bug go to: > https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718942] Re: running favorited snap shows two icons in Ubuntu dock
** Tags added: artful ** Also affects: gnome-shell-extension-ubuntu-dock (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718942 Title: running favorited snap shows two icons in Ubuntu dock To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1718942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs