Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wallpaper portal permission issues #1532

Open
sidt4 opened this issue Dec 10, 2024 · 1 comment
Open

Wallpaper portal permission issues #1532

sidt4 opened this issue Dec 10, 2024 · 1 comment
Labels

Comments

@sidt4
Copy link
Contributor

sidt4 commented Dec 10, 2024

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

  1. Wallpaper portal permission dialog should be triggered when setting wallpaper, if app doesn't already have permissions.
  2. When all permissions are removed, app should not be able to set wallpaper.

Current Behavior

From https://gitlab.gnome.org/bertob/nostalgia/-/issues/21:

  1. Wallpaper portal permission dialog is not triggered when setting wallpaper, if app doesn't already have permissions.
  2. 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:

  1. Wallpaper portal permission dialog is not triggered when setting wallpaper, if flatpak app doesn't already have permissions.
  1. Install https://gitlab.gnome.org/bertob/nostalgia app from flatpak.
  2. Try setting wallpaper.
  3. Decline when access is requested in dialog.
  4. Restart app.
  5. Try setting wallpaper.
  6. No access dialog is shown.

Issue 2:

  1. When all permissions are removed, flatpak app can still set wallpaper.
  1. Grant all access so setting wallpaper works correctly.
  2. 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
    
  3. Try setting wallpaper.
  4. It succeeds, when it should show an access dialog.

Anything else we should know?

No response

@sidt4 sidt4 added the bug label Dec 10, 2024
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Dec 10, 2024
@A6GibKm
Copy link
Contributor

A6GibKm commented Dec 10, 2024

I would like to mention that this issue is not fully reproducible. I did the same on two machines and only in one I was able to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Needs Triage
Development

No branches or pull requests

2 participants