Flatpak integration in Qubes OS templates

Wouldn’t /usr/local/sbin/sync-app.sh be inherited by newly created appVMs?

Yes, but it is not really an issue as it will not be run by the appVm.

Even if you run it from an appVm, it will not do anything interesting.

Without adding the home path to inotify, the qubes app menu wouldn’t update when you installed a flatpak in user mode, right?
Thats just one of the features I like most about flatpaks, that I can install things in the app qube without having to create tons of new templates. It was just always such a pain to make desktop files by hand, until I found your scripts.

You do not need to use that script for AppVMs, the Qube Settings application button “Refresh application list” will find user installed flatpak programs :slight_smile:

1 Like

Oh wow, thats news to me. I guess it was a recent change?
Cause I could swear, that didn’t work for me before.
Anyways, thanks a lot for that hint, and the scripts.

I checked in a qube before replying (in a fedora qube), but if you could double check that it also works for you, it would be better.

1 Like

Incredible, yes, confirmed working 4.2.2 Debian 12

2 Likes

it didnt work out for me for some reason and im on fedora-40 if that helps

Could you elaborate? I can’t help you with “it did not work”.

1 Like

your approach seems interesting & i would like to try it as when i tried Solene’s approach it didnt work on Fedora40 so now im trying your approach out as my main current interest is getting Session on a Qube then if im successful i shall try to get Freetube on another Qube, that would be a dream come true for me.

So i opened up Feodra40 Tempate CLI and installed Flatpak but a strange response as it mentioned Brave and Mullvad but i only downloaded Flatpak i thought, i have put the response below in hope you would be kind enough to check it looks ok please;
- - - - - - - - - - - - - - - - - - - -
[user@fedora-40 ~]$ sudo dnf install flatpak
*Brave Browser 5.9 kB/s | 2.0 kB 00:00
*Brave Browser 56 kB/s | 45 kB 00:00
*created by dnf config-manager from https://brave-browser-rpm-release.s3. 7.0 kB/s | 2.0 kB 00:00 *
*created by dnf config-manager from https://brave-browser-rpm-release.s3. 58 kB/s | 45 kB 00:00 *
*Fedora 40 - x86_64 - Updates 50 kB/s | 20 kB 00:00 *
*Fedora 40 - x86_64 - Updates 443 kB/s | 4.4 MB 00:10 *
*Mullvad VPN 5.2 kB/s | 3.0 kB 00:00
*Mullvad VPN 1.7 kB/s | 1.4 kB 00:00 *Qubes OS Repository for VM (updates) 1.3 kB/s | 833 B 00:00 *
Package flatpak-1.15.10-1.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[user@fedora-40 ~]$
- - - - - - - - - - - - - - - - - - - -

In addition to this i got stuck thereafter with your guide as i didnt know what to do next so i made a new Qube based on the Fedora40 Template, then i opened up that CLI and Copied and pasted in the 3 commands you kindly provided being;

flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --user install remmina
flatpak --user run org.remmina.Remmina

However when i run; flatpak --user install remmina command i get a warning saying;
Error: While pulling runtime/org.gnome.Platform/x86_64/46 from remote flathub: Delta requires 872.2 MB free space, but only 545.1 MB available
error: Failed to install org.gnome.Platform: While pulling runtime/org.gnome.Platform/x86_64/46 from remote flathub: Delta requires 872.2 MB free space, but only 545.1 MB available

so i goto the Qube settings and the minimum says 400mb and the max says 4000mb so surly thats enough so im confused?

Also is this; if or when i am successful with this then how do i get Session on the said Qube please and can i repeat the process for Freetube on another qube?

This seems to be the memory size, but flatpak gives you an error about the storage space (it’s a different thing, in the qube’s settings).

It’s about RAM size. You should increase Private storage max size on the same page.

thanks

thanks, i just found it, is was on 2gb but the max seems to be 20gb, how do i alter the max as it seemed greyed out on the max?

You do not have to change System storage max size that is greyed out. It is taken from template.
In case you use flatpak --user all data will be stored within Private storage max size which is not limited to 20GB. Please read more and watch more videos about qubes os, how to use it in general, currently you lack some experience which can be required.

Just to be clear: @betty, don’t try to use flatpak in templates for now. You can learn a lot of things just using it as a user in a simple AppVM qube. This guide is about an advanced method :sweat_smile:

Thanks

I think i now im using it as a flatpak, i tried the none flatpak approach but just couldnt get it and somehow achieved flatpaks so i seem to be up and running, however the only flaw i seem to have now is that Freetube on a dedicated QubeVM wont play any video, i was on 2VCPU’s and 4GB storage and no play at all even though i altered the window to very small and set the video to 144p still it not play anything so im now guessing i need to claim some hardware in SETTINGS - DEVICES or in SERVICES or maybe APPLICATIONS or something as the videos dont even attempt to play no matter what i do but everything else looks perfect.
I recall when i had a similar issue using None QubesOS before with Freetube i just downloaded Flatseal and altered the settings and got going that way but not sure how to deal with Flatseal in Qubes or even if i need to or not?

are you sure you are not running freetube in a template?

100% sure i dont have any Templates online ever, i learnt that from you.
its running on Fedora40