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

[Suggestion] Use Polkit to launch applications from rootfull containers #1483

Open
xalt7x opened this issue Jul 19, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@xalt7x
Copy link

xalt7x commented Jul 19, 2024

Is your feature request related to a problem? Please describe.
distrobox_sudo_askpass is used to launch graphical apps in rootfull containers (e.g., virt-manager). Unfortunately, due to its dependency of specific utilities (zenity and kdialog) it might not work out of the box on modern distros (e.g., Fedora Silverblue). Apparently, GNOME doesn't depend on zenity anymore so Silverblue doesn't pre-install its package. I presume that newer desktop environments (like COSMIC Epoch) won't depend on zenity/kdialog either.

Describe the solution you'd like
Provide some simple universal GUI dialog for sudo password.

Describe alternatives you've considered
Polkit seem popular among desktop environments.
I can use pkexec in terminal to login into rootfull container
pkexec distrobox enter --root virt
I've also managed to launch "virt-manager" from the desktop file
Exec=env DBX_SUDO_PROGRAM="pkexec" distrobox enter --root virt -- virt-manager
(though unlike with zenity/kdialog it triggers multiple password prompts)

@xalt7x xalt7x added the enhancement New feature or request label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant