I've been working on flatpak-ing this application:
https://github.com/JordanL2/io.github.CudaText-Qt5
I'm using this flatpak'ed version and everything appears to be working.
Only issue I had was the Flatpak org.freedesktop.Sdk.Extension.freepascal SDK uses Lazarus 2.0.12 and that has Wayland issues - when Lazarus 2.2 is released I'll send the SDK dev a PR to update Lazarus.
I think this flatpak config is in a state ready to be submitted to Flathub, if you were keen on the idea? I'd be happy to hand over the repository to you (or you can copy / fork it) :)
BTW, the metadata file needs a description and screenshots to be accepted by Flathub, so I copied the screenshot URLs and description from your website.
Great ! Pls submit it to the Flathub, because I am not expirienced here...
No problem :) I've not actually submitted anything to Flathub before, but I'll let you know how it goes!
@Alexey-T I don't suppose you have any idea why compiling bgrabitmap for aarch64 fails here?
https://flathub.org/builds/#/builders/45/builds/4157
I'm probably going to skip aarch64 for now and concentrate on x86_64, but it would be good to get it working.
EDIT: Some more info, the Freepascal SDK builds from these sources for aarch64:
https://downloads.sourceforge.net/project/freepascal/Linux/3.2.0/fpc-3.2.0.aarch64-linux.tar
https://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%202.0.12/lazarus-2.0.12.tar.gz
And sets this env var on aarch64:
PPNAME=ppca64
I got the latest bgrabitmap from Github.
I recompiled Cud build-mode 'linux aarch64'. It gave errors but non fatal errors, binary was made.
And you need FPC 3.2.2 if FPC 3.2.0 fails here, maybe
Ok, I'll try again when I can update the freepascal SDK.
The flathub dev worked it out, we needed to pass --compiler=ppca64 to lazbuild.
FYI this is the PR, it's still unmerged due to server issues:
https://github.com/flathub/flathub/pull/2449
Great, thank you! How can I use/install the app from Flathub? I will search for this inf.
No, it's not available yet, the PR still needs to be merged to flathub.
You can install and run the test build with this command:
flatpak install --user https://dl.flathub.org/build-repo/53745/io.github.cudatext.CudaText-Qt5.flatpakref
flatpak run io.github.cudatext.CudaText-Qt5//test
One of the flathub maintainers is apparently having trouble installing plugins, I'm trying to help diagnose the problem because all the plugins I've tried installing worked...
My Ubuntu don't have the Flatpak, so I will try it but much later. Thanks.
I played with this a bit, had no problems, plugins are installing fine
Update - It's not been accepted yet, but I managed to get an update the the Freepascal SDK merged so it uses Lazarus 2.2.0-RC1. This means the build now works on Wayland.
Only issue I had was the Flatpak org.freedesktop.Sdk.Extension.freepascal SDK uses Lazarus 2.0.12 and that has Wayland issues - when Lazarus 2.2 is released I'll send the SDK dev a PR to update Lazarus.
As you wrote, you have some PR for Lazarus? why not to post this as an issue to https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues
you can login to GitLab by GitHub account.
No, this was for the flatpak SDK - a set of libraries that are made available to the app when it's building, basically. The PR updated the Lazarus version to 2.2
It's been published :)
https://flathub.org/apps/details/io.github.cudatext.CudaText-Qt5
This is the repo for further changes, @Alexey-T I'll give you access to it.
https://github.com/flathub/io.github.cudatext.CudaText-Qt5
Great... I will see it.
Actually seems I don't have permission to give other people admin access - I don't see the Settings tab. I'll let you know if I figure out how to get you access.
Can I ignore the invite request? I just don't wanna study how that system works. maybe you will support the Flatpak package?
Yes no worries I can do that :)
I just updated it to 1.141.0 too.
Btw I guess this issue can be closed now.
@Alexey-T btw, you can see the stats of downloads of the flatpak here:
https://klausenbusk.github.io/flathub-stats/#ref=io.github.cudatext.CudaText-Qt5&interval=14&downloadType=installs
Thanks.
I guess I will download the Cud from FatHub and test it.
Hmm, I'm getting Access Violation popup errors when I close windows now. Also, if I try installing a plugin now, nothing happens and I see an exception in the console complaining about access violation.
I think this occurred with a recent update to Cudatext, because if I roll the version of cudatext the flatpak uses back to 1.140.5, the problem disappears.
The problem occurs with 1.141.0 onwards (I've not tested a non-flatpak version, the AUR only has 1.139.5 available). Also, these deps were updated as new ones were available:
bgrabitmap
ATSynEdit
ATSynEdit_Cmp
EControl
I'll roll the flatpak back to 1.140.5 for now.
Looking at the commits between 1.140.5 to 1.141.0, I'm wondering if it's the bookmark file stuff. This issue is most likely caused by it trying to access a file it's not allowed to.
Hmm this isn't anything to do with the flatpak sandboxing, when I run the binary (inside the flatpak) directly I get the same error.
Submitted new issue for this: https://github.com/Alexey-T/CudaText/issues/3676
Most helpful comment
You can install and run the test build with this command:
One of the flathub maintainers is apparently having trouble installing plugins, I'm trying to help diagnose the problem because all the plugins I've tried installing worked...