Open saenai255 opened 2 years ago
Hi @saenai255
So for the password prompt I'll need to investigate, but have you considered exporting the pamac-manager with --sudo
?
~:$ distrobox-export --app pamac --sudo
or just launching inside the container sudo pamac-manager
,
this shouldn't be a security concern on default rootless distrobox, as the sudo
you're using is only sudo inside the container
Regarding the login issue
Try using 1.3.2 from git (using the --next
flag) and use distrobox-host-exec
to have xdg-open
from the host:
ln -s /bin/distrobox-host-exec /usr/local/bin/xdg-open
this will give a way for the guest to interact with the host's browser
So I confirm that using sudo pamac-manager
and in case exporting the app with --sudo
works as intended.
For github-desktop, it works if you:
sudo pacman -S flatpak-xdg-utils # this installs flatpak-spawn
sudo ln -s /bin/distrobox-host-exec /usr/local/bin/xdg-open
Then it works as intended
Thanks @89luca89 for the reply.
Regarding the --sudo export solution: as far as I know, some apps are expected to be run in "user mode" and only elevate to root when needed.
Is it possible to do this currently?
Seems to be an issue with polkit inside the container, which needs investigation and I don't know if it's easily solvable
pkexec bash
Error getting authority: Error initializing authority: Could not connect: No such file or directory
Polkit to work like this needs a dbus running,and a dedicated dbus to the container, which is not easily achieved on non-init containers and risks breaking integration with host's dbus
Please, before opening a bug:
[x] make sure you've read the documentation. [x] Ensure there isn't already an open issue about this. [x] Ensure there isn't already a closed/resolved issue about this.
Describe the bug I'm not sure if these are two separate bugs or the same one.
Password Prompt
When GUI apps dynamically require root permissions, such as Manjaro's Pamac Manager, the user is prompted to input their password, via an overlay / popup. The problem here is that the password prompt never happens for apps exported from DistroBox
Login with Browser
Apps that require authentication via the browser, like Github Desktop or BlueMail get stuck at the login step.
To Reproduce
Password Prompt
pamac-manager
or any GUI app that dynamically requires root permissionsget_authorization()
errorLogin with Browser
Expected behavior
Password Prompt
The host os should display the password prompt
Login with Browser
A browser from either host or guest os should open to continue the login process.
Logs Run the commands with
--verbose
and post the log here as a file upload Attach also the output ofpodman logs
ordocker logs
, possibly with--latest
flagDesktop (please complete the following information):
Additional context
Password Prompt
When trying to install anything with
pamac-manager
I get the following error popup:and the following process logs:
Login with Browser
No useful logs sadly