-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
FEAT: Publish Linux version as flatpak #297
Comments
Totally agree with this. Also, snaps takes forever to startup, which is annoying too! |
+1 Currently, I'm using DbGate through the AUR, but the version is outdated (v5.0.6). |
Is there an update on this? We have snap, but not flatpak. 😬 |
@janproch Any chance for either creating a flapak bundle or publishing on flathub? Snaps really isn't widely supported and are potentially dangerous to use outside of Ubuntu. Edit: I managed to get it to build, install and run.
|
@ProjectInfinity Thank you for trying it. I am working on it now |
flathub integration PR flathub/flathub#3955 |
How is this going? What's the blockers? |
The biggest problem is that fork() function doesn't work correctly when distributed as flatpak |
Another tip as this uses Electron AFAIK: Many Electron apps (based on the Chromium engine) use Zypak for sub-sandboxing. I did not yet fully understand how it works, but maybe linking flathub/com.vscodium.codium#55 may help and you can see the links/linked implementation there. |
I have no idea of Electron development and only a grasp of flatpak development, but I've tried to ask ChatGPT about that (before summary if you want to continue). It basically recommend other strategies for offloading work (IPC or so) or when asked regarding Electron it suggests Web Workers specifically e.g. Summary by ChatGPT
|
The big issue I am finding is that the subprocesses seem to die, and I am not quite sure why. Maybe it is related to Zypak but I do not know enough about it to confirm. |
/cc @refi64 I took the liberty to CC you here, as for a potential problem of Zypak. I hope this is okay. Otherwise, @ProjectInfinity, maybe ask on https://github.com/refi64/zypak/issues if you think it is about Zypak or otherwise maybe ask the flatpak/Flathub community? |
Unfortunately I can't try this out myself, because Electron versions <18.3.2 don't work on my system due to lack of support for 16k kernels. That being said, is there anything interesting logged? If not, does setting |
Hi, sorry for the slow response it's been quite busy. Attached you will find the log file when running the built flatpak using ZYPAK_DEBUG=1. Unfortunately, I am not familiar enough with zypak to immediately tell you if there is an obvious problem with the log. |
Second attempt to publish to flathub repo: flathub/flathub#5240 Subprocess die issue seems to be fixed with upgrading electron |
I can attest to the issues I experienced being fixed, so far it seems to work just like the AppImage. Great that electron update fixed it because debugging zypak was not simple. 👍 |
Flatpak version published on flathub: https://flathub.org/apps/org.dbgate.DbGate |
Awesome! A download button on https://dbgate.org/ would be great, too. |
|
Is your feature request related to a problem? Please describe.
A simple and easy way to install applications on Linux, which alos work cross-distro in a good way.
Describe the solution you'd like
It would be nice if you could publish this as a flatpak on flathub e.g.
Flatpaks are a new software distribution mechanism for Linux distros, can thus installed on any distro and are easy to update. Thy are easy to install and work on all Linux distros.
Also, if you publish it on FlatHub you may grow your user base given many distros include that and it is a common software source, so your app can be discovered more easily.
Here is how to get started.
Describe alternatives you've considered
There is also “snap“, but I would highly advise against using it.
I personally would prefer flatpak. Because in contrast to snap, you can also self-host it, so you stay in control, and it is widely supported. (snap is not so nice to setup in many distros and snap's security depends on AppArmor, which is not always available in many distros)
Also – in contrast to snaps – flatpaks do not only claim to be distro-independent, but actually aren and they are widely adopted.
Furthermore even Linux Mint criticizes snap, because you cannot self-host a snap server as it is proprietary and (thus) also cannot modify the packages that are served centralized by Ubuntu.
The text was updated successfully, but these errors were encountered: