Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
MIT License
40.08k stars 3.16k forks source link

[Feature request] Flatpak-compatible version #153

Open boredsquirrel opened 1 year ago

boredsquirrel commented 1 year ago

At least big packages like Libreoffice are often used from Flathub, as these are more stable, up to date and work on every distro.

Installing the native version of the whole libreoffice suite is extreme bloat, Libreoffice takes longer to compile than the Linux kernel.

All you need to do is replace the libreoffice command with /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=libreoffice.

I can imagine this could be done automatically. You would then have two docker variants or even two native variants, one for the Flatpak libreoffice. The rest of the packages is rather small and/or not available as flatpak.

Because otherwise running it locally would make no sense at all on systems like Fedora Silverblue/Kinoite, OpenSuse microOS etc.

You could run them in a Distrobox/Toolbox I guess (will try and report), but duplicating Libreoffice is insane.

dnet890 commented 10 months ago

it is very wonderful if we can run this app on SteamOS especially with flatpak support

boredsquirrel commented 10 months ago

lol Steamdecks for PDF editing?

But for sure, a "Stirling-PDF Flatpak" could exist, as an app that has all the code, uses external dependencies like Libreoffice Flatpak. I have not yet learned how to flatpak, but this would be a really great task.

Somehow it should be managed to automate the adaptions of the code, so that not everything is duplicated.

Also I am not sure that Flatpaks can pull in dependencies AND if they can use other flatpaks apps.

But having everything flatpacked would really be great. Launching the app in the background, having a tray icon to open the webui etc.