Feature Request: Flatpak for Linux

All your suggestions, requests and ideas for future development
Post Reply
tydog98
Posts: 8
Joined: 03 Nov 2021, 14:40

Feature Request: Flatpak for Linux

Post by tydog98 »

A Flatpak would be a great way to get Filebot to Linux users who do not use Snap. Many users dislike Snap for its proprietary servers. It would also be nice to not need to install another whole sandboxing system just for a single program.
User avatar
rednoah
The Source
Posts: 20464
Joined: 16 Nov 2011, 08:59

Re: Feature Request: Flatpak for Linux

Post by rednoah »

Which Linux distribution are you using? Does none of the classic package managers work for you? The APT, YUM and AUR repositories should cover most users.


:idea: I'd generally recommend installing via the apt repository on any Debian-based machine, even on Ubuntu machines where snap would be a built-in option.
:idea: Please read the FAQ and How to Request Help.
tydog98
Posts: 8
Joined: 03 Nov 2021, 14:40

Re: Feature Request: Flatpak for Linux

Post by tydog98 »

I am using Fedora. Using the RPM you provided works fine but personally I just don't like having unmanaged packages I can forget to update installed. As for the repo, I just find using 3rd party repos sketchy in general (even if I know they're trusted) and would prefer a Flatpak to that if I can. I actually think having Flatpak being the sole option of downloading for Linux users would probably be a better choice for everyone in this scenario. You have a stable environment to target that you know won't break and wont have to package for each distro. Users have a convenient and trusted place to install their software from and they know it will work.
User avatar
rednoah
The Source
Posts: 20464
Joined: 16 Nov 2011, 08:59

Re: Feature Request: Flatpak for Linux

Post by rednoah »

Do you know any popular programs that have both GUI and CLI (i.e. a seamless experience on both Linux Desktop and a Linux headless server would be ideal) that are packaged with Flatpak for reference? I haven't looked into this space for years.

Since I got burned by snap already (nightmare to build and maintain; especially for non-amd64 architectures; angry users due to unexpected filesystem access limitations; few users prefer it over apt if given the choice; etc) I'm less inclined to do anything other than classic package repositories that everyone is familiar with already.
:idea: Please read the FAQ and How to Request Help.
tydog98
Posts: 8
Joined: 03 Nov 2021, 14:40

Re: Feature Request: Flatpak for Linux

Post by tydog98 »

I cannot think of any off the top of my head. I know you can pass CLI arguments to the Flatpak but it's more of a pain than native (have to write the entire name ex: org.videolan.VLC for VLC). Tools like Flatseal make it easy for users to customize what the Flatpak can and cannot access (including filesystems). I don't have any experience packaging for it either so sadly I can't speak on that.
snarf3l
Posts: 1
Joined: 29 Dec 2021, 20:27

Re: Feature Request: Flatpak for Linux

Post by snarf3l »

rednoah wrote: 09 Dec 2021, 09:35 Do you know any popular programs that have both GUI and CLI (i.e. a seamless experience on both Linux Desktop and a Linux headless server would be ideal) that are packaged with Flatpak for reference? I haven't looked into this space for years.

Since I got burned by snap already (nightmare to build and maintain; especially for non-amd64 architectures; angry users due to unexpected filesystem access limitations; few users prefer it over apt if given the choice; etc) I'm less inclined to do anything other than classic package repositories that everyone is familiar with already.
Sorry to hear about Snap. I would suggest asking on the FlatHub forums: https://discourse.flathub.org/

I would ask, but I suspect they'll be more responsive to the app's actual developer. As a Linux user, would love to see a Flatpak for this since distros like Fedora Silverblue are going with flatpaks as the primary method that's used for package management over .rpm. And as an enduser, being able to update via package manager through FlatHub rather than manually downloading .rpm from the FB site would be nice.
tydog98
Posts: 8
Joined: 03 Nov 2021, 14:40

Re: Feature Request: Flatpak for Linux

Post by tydog98 »

Silverblue is a good point. Immutable environments seems to be the direction Fedora is heading in, and I think some others are playing around with it too.
User avatar
rednoah
The Source
Posts: 20464
Joined: 16 Nov 2011, 08:59

Re: Feature Request: Flatpak for Linux

Post by rednoah »

For the time being, I'll probably handle Flatpak same as AUR. Let the community maintain the package if somebody is interested in taking the maintainer role, but happily provide support and dedicated binary builds if needed.

I'm currently evaluating official unRAID support, so that will likely be the next supported platform as far as packaging is concerned. I might come around to Flatpak again after that, but it might be a while. 🙏
:idea: Please read the FAQ and How to Request Help.
tydog98
Posts: 8
Joined: 03 Nov 2021, 14:40

Re: Feature Request: Flatpak for Linux

Post by tydog98 »

Tried to see if I could get started myself building a Flatpak, but apparently the program modifies its own installation directory, which Flatpak does not support.

Here is a Reddit thread I made for the issue, someone mentioned using the XDG directory specification:
https://old.reddit.com/r/flatpak/commen ... ppbindata/
tydog98
Posts: 8
Joined: 03 Nov 2021, 14:40

Re: Feature Request: Flatpak for Linux

Post by tydog98 »

Actually I got it to work using a work around someone else posted. Fonts look terrible but I will look into that later.
User avatar
rednoah
The Source
Posts: 20464
Joined: 16 Nov 2011, 08:59

Re: Feature Request: Flatpak for Linux

Post by rednoah »

You'll want to modify filebot.sh to configure various variables to suit your environment. You could start by copying and modifying the filebot.sh from the SNAP package, or the AUR tarball. That should illustrate all the options you might want, configure where settings are stored, etc.

The *-aur.tar.xz tarball will be more suitable for you as a base, because the files inside are meant to be installed into the system rather than run from some random folder like the portable. It'll also include all the files you will need for Desktop integration, file type associations, etc.
:idea: Please read the FAQ and How to Request Help.
bb1netusaf2004
Posts: 3
Joined: 15 Jan 2022, 22:17

Re: Feature Request: Flatpak for Linux

Post by bb1netusaf2004 »

More options are great, but at a minimum thank you for publishing/maintaining an rpm package. I wouldn't have bought it otherwise. Also it might be worth looking into AppImage. It's not as popular as flatpak or snap but it's dead simple and a lot of GUI applications are starting to have AppImage downloads. The AppImage for kdenlive is a godsend.
Post Reply