Replies: 2 comments 2 replies
-
we're able to call with flatpak some commands using flatpak-spawn. It does not work ? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Closing in favour of: #1925 On Fedora / Ubuntu, they will automatically initiate a prompt to enter a password for privileges when using flatpak-spawn, but not on Debian. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unfortunately, we wont be able to implement an "automatic" compatibility-mode button for Linux.
This is due to:
systemctl enable --now podman.socket
.I went ahead and implemented it here: #1847 unfortunately this will only work on non-flatpak environments. I only realized until after that Flatpak permissions are highly sandboxed for systemd / systemctl calls.
When trying to implement it within electron + flatpak, I created the code necessary to communicate to the API here:
https://gist.github.com/cdrage/beb190a32eaf1909bf19c76f93f1f926
Despite API calls, this unfortunately this requires us to add:
To the electron-builder YAML which is not recommended by Flatpak for us to do.
This would also require us to add the
org.freedesktop.DBus GLib
runtime for enablement.Solution:
Instead we should prompt the user to just type in
systemctl enable --now podman.socket
and have Podman Desktop detect that the socket has indeed been enabled / etc.Beta Was this translation helpful? Give feedback.
All reactions