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

[Bug]: flatpak permission-reset takes very long #5772

Open
4 tasks done
A6GibKm opened this issue Apr 11, 2024 · 4 comments
Open
4 tasks done

[Bug]: flatpak permission-reset takes very long #5772

A6GibKm opened this issue Apr 11, 2024 · 4 comments

Comments

@A6GibKm
Copy link

A6GibKm commented Apr 11, 2024

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.
  • If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
  • This issue is not a report of a security vulnerability (see here if you need to report a security issue).

Flatpak version

1.15.6

What Linux distribution are you using?

Fedora Silverblue

Linux distribution version

f40

What architecture are you using?

x86_64

How to reproduce

Running

flatpak permission-reset org.gnome.Snapshot

Expected Behavior

Takes less than 1s.

Actual Behavior

Takes around 5s.

Additional Information

In the journal I only see

abr 11 20:39:39 thinkpad polkitd[1156]: Registered Authentication Agent for unix-process:124813:52425856 (system bus name :1.1239 [flatpak permission-reset org.gnome.Snapshot], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
abr 11 20:39:43 thinkpad polkitd[1156]: Unregistered Authentication Agent for unix-process:124813:52425856 (system bus name :1.1239, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
@A6GibKm
Copy link
Author

A6GibKm commented Apr 11, 2024

cc @GeorgesStavracas @mcatanzaro

@GeorgesStavracas
Copy link
Member

Something that would help is if you run this comment while dbus-monitor is running, and see which D-Bus call specifically is slowing things down.

@A6GibKm
Copy link
Author

A6GibKm commented Apr 11, 2024

Attached is the output of dbus-monitor > monitor.txt while flatpak permission-reset org.gnome.Snapshot runs

monitor.txt

From Bustle:

image

@A6GibKm
Copy link
Author

A6GibKm commented Apr 11, 2024

It seems it calls Lookup on every single app and the sets the permissions to what they had set anyways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants