← Back to team overview

documentation-packages team mailing list archive

[Bug 2089814] [NEW] Privacy & Security does not show screenshot permissions.

 

Public bug reported:

When an application requests permission to do an screenshot, a dialog
opens that offers the user the possibility of allowing or denying
applications the permission, and says the choice will appear under
Privacy settings. However this is not the case.

If the permission is denied the first time, this breaks the application,
since it can never be granted again.

If the permission is granted, this creates a security risk, since now
all applications can access the screen without an easy way to change the
user choice.

Steps to reproduce:
- Install an application that request permission to screenshots (e.g. flameshot), and execute it.

![The only way I have found to actually modify the choice is to access the dbus interface though Python code:](https://community.upwork.com/t5/Freelancers/Constantly-asking-for-permission-to-share-screenshot-on-Gnome/m-p/1222388#M731300)
```
import dbus
bus = dbus.SessionBus()
perm = bus.get_object('org.freedesktop.impl.portal.PermissionStore', '/org/freedesktop/impl/portal/PermissionStore')
perm_iface = dbus.Interface(perm, dbus_interface='org.freedesktop.impl.portal.PermissionStore')

perm_iface.Lookup("screenshot", "screenshot")
perm_iface.Set("screenshot", dbus.Boolean(True), "screenshot", {"": ["yes"]}, dbus.Byte(0x00))
perm_iface.Lookup("screenshot", "screenshot")
```

** Affects: gnome-shell (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: gnome permissions privacy screenshot

** Attachment added: "Dialog"
   https://bugs.launchpad.net/bugs/2089814/+attachment/5840860/+files/Screenshot%20from%202024-11-27%2023-17-44.png

-- 
You received this bug notification because you are a member of
Documentation Packages, which is subscribed to ubuntu-docs in Ubuntu.
https://bugs.launchpad.net/bugs/2089814

Title:
  Privacy & Security does not show screenshot permissions.

Status in gnome-shell package in Ubuntu:
  New

Bug description:
  When an application requests permission to do an screenshot, a dialog
  opens that offers the user the possibility of allowing or denying
  applications the permission, and says the choice will appear under
  Privacy settings. However this is not the case.

  If the permission is denied the first time, this breaks the
  application, since it can never be granted again.

  If the permission is granted, this creates a security risk, since now
  all applications can access the screen without an easy way to change
  the user choice.

  Steps to reproduce:
  - Install an application that request permission to screenshots (e.g. flameshot), and execute it.

  ![The only way I have found to actually modify the choice is to access the dbus interface though Python code:](https://community.upwork.com/t5/Freelancers/Constantly-asking-for-permission-to-share-screenshot-on-Gnome/m-p/1222388#M731300)
  ```
  import dbus
  bus = dbus.SessionBus()
  perm = bus.get_object('org.freedesktop.impl.portal.PermissionStore', '/org/freedesktop/impl/portal/PermissionStore')
  perm_iface = dbus.Interface(perm, dbus_interface='org.freedesktop.impl.portal.PermissionStore')

  perm_iface.Lookup("screenshot", "screenshot")
  perm_iface.Set("screenshot", dbus.Boolean(True), "screenshot", {"": ["yes"]}, dbus.Byte(0x00))
  perm_iface.Lookup("screenshot", "screenshot")
  ```

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



Follow ups