Installed Flatpaks working in template, not in appvm (yes, restarted both multiple times)

So, AFAIK I followed @solene’s guide correctly (though using the Debian xfce template) but for some reason, after shutting down the template, and restarting the appvm, I am still not able to see any flatpaks in the appvm? I do “flatpak list” and nada? The packages are definitely installed in the template as i started one of them to make sure and the applications show up in the settings/applications tab but the appvm isnt seeing them? Anyone else had this issue?

I did find when i tried to execute the sync-app.sh i got:

user@debian-13-xfce:/usr/local/sbin$ ./sync-app.sh
Setting up watches. Beware: since -r was given, this may take a while!
Couldn’t watch /var/lib/flatpak/exports/share/applications/: No such file or directory

not sure if that is the cause but thought I should post any errors i found

I install flatpaks inside the appvm, not in the template, for example (as user, not root)

flatpak --user install --verbose --assumeyes --noninteractive flathub io.gitlab.librewolf-community

Thanks, I have been able to do that but installing the apps (like XnViewMP in my case) on multiple appVMs isn’t what I was hoping for.

I can’t figure out why what i tried intially (just installing flatpaks on my template then being able to use them in my AppVMs) didn’t work, and then the guide doesn’t seem to be working for me either? For 4.3.0 just installing them to the template worked just fine, now for 4.3.1 no?

I have been playing around with flatpak installations and updates lately, and I just did a little experiment based on this request. By opening a terminal in my playground template and then running this command:

ALL_PROXY=http://127.0.0.1:8082/ gnome-software &

Note: You may need to install the gnome-software app first and that will require adding a bunch of gnome libraries to the template as dependencies.

Once gnome Software app was opened, I searched for XnViewMP, installed the flatpak from flathub. I then shutdown the template, opened my AppVM menu settings tab, told it to sync my applications over from the template. I moved the new entry over to the AppVM menu items, and saved it. Each AppVM based on that template should now have that same application visible in the settings menu selection tab able to be added to the AppVM menu.

I then I launched the AppVM by virtue of starting the new XnViewMP app from the menu. XnViewMP dialog popped up and then walked me through the initial setup configuration and displayed images from my VM. It appears to me to work fine from my selected AppVM. If this technique works then perhaps editing the gnome-software.desktop file to add the all_proxy to the launch command, or just setting it up the environment variable in the users .bashrc. I still have some experimenting to do.

I have not tried to update flatpaks from gnome-software but the command line:

sudo ALL_PROXY=http://127.0.0.1:8082/ flatpak update

or the Qubes update post install trigger should work.

sudo nano /etc/qubes/post-install.d/05-flatpak-update.sh

I’m still playing with this part.

Note: plasma-discover as a flatpak installer doesn’t play nice with the qubes proxy settings.

Hey Big Thanks for taking interest in my issue!

So is the gnomesoftware app needed if one only installs via CLI? if thats what needed to get this to work I will do it but given a choice id prefer to keep the template/installed software on the lean side.

As for plasma-discover, is that the KDE version of gnome software app? Again, if its possible I am hoping not to install extra stuff - though I do have KDE installed.

For what its worth, i played around with the appvm some more and noticed that nothing i did - apart from install flatpak seems to be reflected in the appvm. It doesnt see the flathub repo i added or anything. Its all quite strange as in 4.3 I literally just installed flatpaks in the template and then could use them in the appvms (small caveat, i would usually switch over to sys-whonix for networking until I learned about export ALL_PROXY=http://127.0.0.1:8082/). Unfortunately that doesnt seem to work any more :frowning:

Still works for me

I am posting this more to test my blind guesses. Would putting config files into /rw or even only in /etc/skel and then creating app make any change?

I have never used flatpak so please ignore if not related.