Bug#1050907: gnome-shell-extensions: please check whether a gnome-classic-portals.conf for xdg-desktop-portal is needed

Simon McVittie smcv at debian.org
Thu Aug 31 12:11:44 BST 2023


Package: gnome-shell-extensions
Severity: wishlist
Tags: trixie sid
User: xdg-desktop-portal at packages.debian.org
Usertags: portals.conf

xdg-desktop-portal 1.17.x introduces a new way to select which portals will
be used for which desktop environments, modelled on mimeapps.list:

- each desktop environment should provide a file like
  /usr/share/xdg-desktop-portal/gnome-classic-portals.conf

- the filename is ${DESKTOP}-portals.conf where ${DESKTOP} is the desktop
  environment's entry in $XDG_CURRENT_DESKTOP (the same as the DesktopNames
  from /usr/share/{x,wayland-}sessions/*.desktop), folded to lower case

- sysadmins and users can override this via files named portals.conf or
  ${DESKTOP}-portals.conf in various locations like /etc/xdg-desktop-portal
  and ~/.config/xdg-desktop-portal

Please see portals.conf(5) or its source code
https://github.com/flatpak/xdg-desktop-portal/blob/main/doc/portals-conf.rst
for full details.

Because GNOME Classic declares itself as being GNOME-based with
XDG_CURRENT_DESKTOP=GNOME-Classic:GNOME, it has two options:

1. Delegate its choice of portals to "ordinary" GNOME by accepting
   whatever GNOME does in gnome-portals.conf, and don't install a
   gnome-classic-portals.conf

2. Take control over its own choice of portals by providing a
   /usr/share/xdg-desktop-portal/gnome-classic-portals.conf

If the first option is what the GNOME Classic maintainers want, then this
bug can be closed without further action. If I understand the situation
correctly, GNOME Classic is just GNOME Shell with a stylesheet and some
pre-configured extensions, so it provides most (all?) of the APIs that
GNOME Shell does, and can just inherit gnome-portals.conf from GNOME?
So closing this bug without further action is probably OK?

But if GNOME Classic wants to override the choice of portals,
the way to do that would be something similar to the
https://salsa.debian.org/gnome-team/gnome-session/-/commit/b201c9c40e3adc7bf0b1c3504bef4c8602aac31d
in ordinary GNOME.

Thanks,
    smcv
-- 
This is part of a mass bug filing:
https://lists.debian.org/debian-devel/2023/08/msg00311.html



More information about the pkg-gnome-maintainers mailing list