Hey Simon

Answers inline:

On Thu, 31 Aug 2023 at 13:27, Simon McVittie <s...@debian.org> wrote:

> Source: i3-wm
> Severity: normal
> Tags: trixie sid
> User: xdg-desktop-por...@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/i3-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.
>
> If I'm reading its code correctly, I think i3-wm asks the display manager
> to set XDG_CURRENT_DESKTOP to "i3"?
>

I don’t know what code you’re referring to.
I don’t recall i3 asking any display manager anything, but maybe I’m
missing something?


>
> As a backwards-compatibility mechanism, x-d-p will fall back to trying to
> guess the most appropriate portals from the portals' deprecated UseIn=
> fields, but it will log warnings when it does that, and anyway Debian
> doesn't currently ship any portal backends that are flagged as suitable
> for i3. Please add an i3-portals.conf to tell x-d-p more explicitly
> what backends i3-wm is meant to be using by default.
>
> For example, if the intention is to use the x-d-p-gtk backend,
> the way to write that would be:
>
> [preferred]
> default=gtk;
>
> The desktop environment (either i3-wm or some larger metapackage) should
> probably also have a Recommends, or at least a Suggests, on whatever
> portals would be most appropriate for it.


i3 isn’t a desktop environment, it’s a window manager only.

I don’t want to make the choice of whether gtk or qt should be used for
parts of a user’s desktop.
I’m also not familiar with what these xdg portals are, and I don’t think
I’m using them (yet)?

I think for the case of i3, the defaults should be fine, so I would prefer
not to add this config file.

If you think i3 should provide a portal file, it would probably be best to
discuss upstream:
https://github.com/i3/i3/issues

-- 
Best regards,
Michael

Reply via email to