-
-
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
Flatpak Version #5
Comments
I think a regular python package installed via pip would be a bit more convenient. |
Right now I have a script that creates a deb package on the fly. It's not the same as automatic updates, but it's better than what it was. I'm not a fan of flatpak tbh, I'd rather keep those things out of my computer. But, if somebody else wants to package it, I have no problem with that. |
I made a script in bash that install this ZeroTierGUI (ZeroTierGUI is an amazing work) and the ZeroTier. it's not flatpak, but it's easy to install, in my opinion the updates would technically work, if you want to update you open the script again, since it uses the direct repository of ZeroTierGUI |
Thanks, but It's not recommended to run graphical applcations as root. The GUI will ask for permission if needed, but it should otherwise run as an unauthorized user. |
Experimenting with builder and flatpak, by it's nature, i think this app it's not possible to package as flatpak, sandbox permissions don't allow access to /var/lib (it's blacklisted) or outside commands as mention in Flatpak docs, zerotier-one lives in /var/lib directory, zerotier-one doesn't have any dbus methods to access. The only way this could work is moving the authtoken.secret where the flatpak app could read this file:
or telling the user to sudo cat /var/lib/zerotier-one/authtoken.secret and give it to the app (also not possible to do inside the flatpak). Botw implementations won't work until the new zerotier-gui it's ready. I personally think this defeats the purpose of making a flatpak app. |
OK, I found out something that could help with the flatpak version, you could execute external commands in flatpak with flatpak-spawn --host (some reddit forums tell not to do it because it defeats the flatpak purpose) but with this you could get access to the authtoken.secret and use it in the new zerotier-gui implementation, you only need to give the session bus access to org.freedesktop.Flatpak. |
Hi. I'm currently testing GTK with my other program Steam-Metadata-Editor. I'm liking it much better already. Once that's finished, I'll likely port ZT GUI to Gtk as well, and I'll switch from running CLI commands to interact with zerotier to using its api. I already ran some tests locally and it works great. To use the API, I still need to auth token, but it needs to be sent as a header along with the request to the API, meaning that the authtoken can be supplied in any number of ways. Be it asking for it within the program, setting an env variable, or making a copy somewhere where the flatpak version can access. With that, a Flatpak version is certainly possible. |
I've a start of the GTK version with flatpak a long time ago, if it help in something https://github.com/RiemaruKarurosu/ZeroTier-GTK, actually I don't have so much time, but it's a work in progress, feel free to grab the usefull things from it. |
Yes, I remember! Thank you, it'll most likely be useful. |
Normally. I had the same opinion before, but in the result it's a good idea to install all apps with the close source via flatpak for security and to protect the system from the dependencies. And your system will be clear longer. So if it's possible it's a universal way for all distr's. Thanks for your great job anyway. |
Hi,
it is good to see that someone tries to create a GUI for ZeroTier on linux. It would be great to have this available as a flatpak for easy installing and updating.
Thank you for your work.
Best regards
Heiko Gimbel
The text was updated successfully, but these errors were encountered: