xdg-desktop-portal
xdg-desktop-portal copied to clipboard
Wallpaper portal permission issues
Operating System
Debian Unstable
XDG Desktop Portal version
1.18
XDG Desktop Portal version (Other)
No response
Desktop Environment
GNOME
Desktop Environment (Other)
No response
Expected Behavior
- Wallpaper portal permission dialog should be triggered when setting wallpaper, if app doesn't already have permissions.
- When all permissions are removed, app should not be able to set wallpaper.
Current Behavior
From https://gitlab.gnome.org/bertob/nostalgia/-/issues/21:
- Wallpaper portal permission dialog is not triggered when setting wallpaper, if app doesn't already have permissions.
- When all permissions are removed, app can still set wallpaper.
The entire permission behavior is quite inconsistent. Refer comments in https://gitlab.gnome.org/bertob/nostalgia/-/issues/21 for more details.
Steps to Reproduce
Issue 1:
- Wallpaper portal permission dialog is not triggered when setting wallpaper, if flatpak app doesn't already have permissions.
- Install https://gitlab.gnome.org/bertob/nostalgia app from flatpak.
- Try setting wallpaper.
- Decline when access is requested in dialog.
- Restart app.
- Try setting wallpaper.
- No access dialog is shown.
Issue 2:
- When all permissions are removed, flatpak app can still set wallpaper.
- Grant all access so setting wallpaper works correctly.
- Remove all permissions as below.
$ flatpak permission-set wallpaper wallpaper im.bernard.Nostalgia no $ flatpak permission-set background background im.bernard.Nostalgia no $ flatpak permission-show im.bernard.Nostalgia Table Object App Permissions Data background background im.bernard.Nostalgia no 0x00 wallpaper wallpaper im.bernard.Nostalgia no 0x00
- Try setting wallpaper.
- It succeeds, when it should show an access dialog.
Anything else we should know?
No response