-
Notifications
You must be signed in to change notification settings - Fork 22
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
Subprocess and systemctl issues in Flatpak #80
Comments
@jwillikers i just want to run systemctl in a subprocess. is this a quick fix to get it working on flatpak? |
@alexr4535 Not without subverting the sandbox by allowing arbitrary code execution on the host. There's an existing Flatpak issue, flatpak/flatpak#2787, regarding this kind of thing, but a solution for Systemd isn't available yet. I know GTK/GNOME exposes functions for running in the background, which should integrate nicely with Flatpak, like this comment mentions. I think there's way that GTK Flatpaks like GNOME Boxes, Geary, and NewsFlash accomplish this which integrates with the Background portal. I can look more into this when I get time. |
Thanks, I've added a warning to the readme that SMS notifications are broken currently in the flatpak version |
The graphical apps that I mentioned seem to run in the background by hiding their main window when it is closed instead of exiting the application. This combined with the background portal should be enough run continually in the background, granted this doesn't provide service management in case of a crash. A Systemd user unit could be provided to users to manually install / enable for running the Flatpak'd Siglo app as a Systemd service until this is possible in Flatpak itself. |
Thanks for mentioning this, I was at a dead end and hadn't realised that turning the toggle off fixed it. |
Siglo tries to run
|
Version: 0.9.0
Install: Flathub's flatpak
OS: Fedora Mobile Remix
When selecting a device in siglo and the
Keep paired
toggle is active, Siglo throws an errors in the console:I'm thinking that this means flatpak can't make calls directly to
systemcl
.I did quickly find this article: https://gabmus.org/posts/making-a-dbus-daemon/ which lays out how to setup a daemon in a flatpak using python. Hopefully something in there can be of use?
Let me know if I can help collect any other information.
The text was updated successfully, but these errors were encountered: