Install the snap-store snap from the beta channel and

$ gcc onlyshowin.c -o onlyshowin `pkg-config --cflags --libs gio-
unix-2.0`

$ grep NotShow
/var/lib/snapd/desktop/applications/snap-store_snap-store.desktop
NotShowIn=ubuntu

$ ./onlyshowin snap-store_snap-store.desktop
Display of snap-store_snap-store.desktop in ubuntu:GNOME is false

** Changed in: gnome-shell (Ubuntu)
   Importance: Undecided => High

-- 
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/1869905

Title:
  OnlyShowIn and NotShowIn not properly honored

Status in gnome-shell package in Ubuntu:
  New

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869905/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to