Public bug reported: Snaps for GUI applications provide .desktop items via files in ${SNAP}/meta/gui/*.desktop files. These are picked up by the gnome launcher that lists them accordingly. However, unlike .desktop files from /usr/share/applications, these cannot be overridden by copying .desktop files into ~/.local/share/applications/ and modifying them accordingly. One of the use cases for this is, for example, fixing rotated camera issue in Skype, that requires launching skype with preloaded v4l1compat.so. A simple fix for Skype is to replace
Exec=skype %U with Exec=env LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so" skype %U in skypeforlinux.desktop file. However, unlike expected, the presence of ~/.local/share/applications/skypeforlinux.desktop results in duplicate items for Skype in gnome launcher. This removes the user-configurability of desktop items for apps installed via snap. The user-configurability for which we all love linux. This bug has been tested in the following environment: Ubuntu 18.04.1 LTS - fresh install with default settings snapd-2.34.2+18.04 gdm-3.28.3-0ubuntu18.04.3 ** Affects: snapd (Ubuntu) Importance: Undecided Status: New ** Tags: desktop-file override snap ** Description changed: Snaps for GUI applications provide .desktop items via files in - ${SNAP}/meta/gui/*.desktop files. These are picked up by the app + ${SNAP}/meta/gui/*.desktop files. These are picked up by the gnome launcher that lists them accordingly. However, unlike .desktop files from /usr/share/applications, these cannot be overridden by copying .desktop files into ~/.local/share/applications/ and modifying them accordingly. One of the use cases for this is, for example, fixing rotated camera issue in Skype, that requires launching skype with preloaded v4l1compat.so. A simple fix for Skype is to replace Exec=skype %U with Exec=env LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so" skype %U in skypeforlinux.desktop file. However, unlike expected, the presence of ~/.local/share/applications/skypeforlinux.desktop results in duplicate - items for Skype in unity launcher. This removes the user-configurability + items for Skype in gnome launcher. This removes the user-configurability of desktop items for apps installed via snap. The user-configurability for which we all love linux. This bug has been tested in the following environment: Ubuntu 18.04.1 LTS - fresh install with default settings snapd-2.34.2+18.04 gdm-3.28.3-0ubuntu18.04.3 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1810688 Title: Snap-installed .desktop items cannot be overridden To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1810688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs