ChrisTitusTech / linutil

Chris Titus Tech's Linux Toolbox - Linutil is a distro-agnostic toolbox designed to simplify everyday Linux tasks.
https://christitus.com
MIT License
2.01k stars 170 forks source link

Flatpak & FlatHub setup #290

Open mak448a opened 1 week ago

mak448a commented 1 week ago

Is your feature request related to a problem? Please describe. Some distros don't come with Flatpak or Flathub preinstalled. Sometimes, distros don't ship with Flathub preconfigured. I add Flathub to Fedora every time I install it

Describe the solution you'd like Could you add a script to install Flatpak and enable Flathub? Enable flathub command: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Describe alternatives you've considered Adding flathub normally.

harshv5094 commented 1 week ago

actually fedora support flatpak packages by default without using the command above

mak448a commented 1 week ago

Oh ok. I haven't reinstalled Fedora in a bit. Could you still add that for other distros?

harshv5094 commented 1 week ago

No, I don't think other distros provide flatpak by default.

mak448a commented 1 week ago

Ok, changed to flatpak and flathub setup then.

sevu11 commented 1 week ago

It could be added within the gaming depencencies I believe. For Arch it's simply sudo pacman -S flatpak. For Debian there is a couple more steps but nothing overly complicated.

harshv5094 commented 1 week ago

I think, we need to make a script for it, the problem is user need to test all this in different distro. VM may be a solution to test it

sevu11 commented 1 week ago

Yes, it should probably belong in the gaming dependencies script. It needs to take into account of which distro/package manager the user are using. I'm working on a seperate PR for VM dependencies so I could start drafting on one for Flatpak. It's not a bad suggestion.

mak448a commented 1 week ago

I think, we need to make a script for it, the problem is user need to test all this in different distro. VM may be a solution to test it

You can use distrobox for that.