-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Ship GUI app only as flatpak? #224
Comments
I'm not opposed to the idea, I do like Flatpak as a way to distribute "typical" desktop applications, and I've tried to make it work for the lact daemon, but it doesn't seem possible. See #11 for previous attempts. The split packaging for the daemon and GUI could work, but the most important part of it would be to explain to users what they need to do and why. It can be pretty confusing for a new user who sees that there is a flatpak available, installs it, it doesn't work, and then decides that either the program or flatpak itself doesn't work for them. This is something that commonly happens with the wireshark flatpak package, which doesn't support capturing packets. See flathub/org.wireshark.Wireshark#4. But if people find it useful and most users have the right expectations (for most people on recent distros the easier way would still be the native package, as it would only require installing one thing), I don't have a problem with it. Though it would probably be better to first figure out packaging for a distro-agnostic daemon - either as a fully static binary, or as a docker container. It would also be useful regardless of the GUI for headless systems or for people who just want to make custom scripts that connect to the daemon. Another thing I've been working on is support for listening on TCP in addition to the current unix socket - this would also increase the usefulness of the gui-only flatpak, as you could connect to remote machines running the daemon. If you want to do it, I'd probably recommend waiting for the previously listed things to get implemented first. |
Sure enough, there is no way to distribute a system level systemd service via flatpak, see below
I think that making a very simple setup wizard would likely work, here's a rough sketch of how it could work:
I think this is pretty much foolproof
I think the daemon can still be shipped as multiple regular distro-specific packages as the full LACT package is currently being shipped
I think it's a bit out of scope in relation to this issue, but I don't think exposing a service with root privileges (albeit a rust app that's likely memory safe) is necessarely a good idea (just my 2 cents here, I'm not really too invested on this point) |
Headless builds are now provided: https://github.com/ilya-zlobintsev/LACT/releases/tag/test-build |
Hi, |
Hey, regarding the issues with building #222 I asked for suggestions to some GNOME devs and if we want to merge it the best solution is to basically ignore the distro's packages for the GUI portion of the app, which inevitably leads to flatpak.
Considering that LACT is already split using a client/server architecture (great idea by the way, avoids having to run the app entirely as root), the idea would be to
It's fiddly but in theory it should work. We could also have some sort of first-time setup wizard in the GUI that lets you install the native package.
If you like the idea, I'm fairly sure I can do most of the work, so just let me know what you think.
The text was updated successfully, but these errors were encountered: