Public bug reported: glib provides g_app_info_should_show to determine if a desktop file should be shown in the app grid based on OnlyShowIn and NotShowIn using XDG_CURRENT_DESKTOP. This isn't being honored in gnome-shell when NotShowIn=ubuntu:GNOME or OnlyShowIn=ubuntu:GNOME and XDG_CURRENT_DESKTOP is ubuntu:GNOME.
glib does have tests for this that are still passing and @seb128 wrote a simple test case to show the glib API does the right thing. The snap-store snap in the beta channel provides two desktop files, one to be displayed when XDG_CURRENT_DESKTOP is ubuntu:GNOME and one for when it isn't. ** Affects: gnome-shell (Ubuntu) Importance: High Status: New ** Tags: rls-ff-incoming ** Attachment added: "glib test case" https://bugs.launchpad.net/bugs/1869905/+attachment/5343824/+files/onlyshowin.c ** Tags added: rls-ff-incoming -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869905 Title: OnlyShowIn and NotShowIn not properly honored To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869905/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs