Flatpak Gaming Folder Change And Home Encryption

Hi!

I want to encrypt my Home folder, but I don’t want to encrypt my games, because it will slow down my 4 cores CPU.

I’ve searched many solutions how to change default path for Flatpak installations, but is confusing to me, so I need help. Any help would be appreciated, I want to learn, and it will definitively benefit others who want to have Home encrypted and still game without performance degradation.

My Flatpak folder with games now is:

/home/a/.var/app/com.valvesoftware.Steam/

It would be nice to have it outside of the Home folder. Thanks!

You can just convert that path to a symbolic link to another location.

That way flatpak will still see it as /home/a/.var/app/com.valvesoftware.Steam/ but the data could be stored somewhere else altogether.

1 Like

How can I do it?

I’m struggling with this tutorial:

After completion of the tutorial my installation defaults to /home/user/.var

Yes, it defaults to /home/user/.var path even if I do:
flatpak --installation=extra run com.valvesoftware.Steam

After completing the tutorial…
It’s too hard for me…

I did:

sudo mkdir -p /etc/flatpak/installations.d
sudoedit /etc/flatpak/installations.d/extra.conf

Inside is:
[Installation “extra”]
Path=/run/media/Flatpak/flatpak/
DisplayName=Extra Installation
StorageType=harddisk

And then:
flatpak --installation=extra remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --installation=extra install com.valvesoftware.Steam
flatpak --installation=extra run com.valvesoftware.Steam

And it defaults to /home/user/.var/

I’m tired…

You changed the path for root installations but your doing user installations.

Try using sudo flatpak --installation=extra install com.valvesoftware.Steam

Will it mean that I will run steam with sudo after? I don’t want it…

Isn’t that where flatpak app’s data and config files are stored and not where the apps themselves are installed?

Sort of what ~/.config is for “regular” apps.

No, mine is installing inside this folder, there is Steam inside and Counter Strike.
I don’t get it, why it’s so hard, I know nothing right now…

For 5 years I’m on Linux and still confused. I don’t get it, I thought that learning curve would flatten, but it’s not the case…

I have no gaming flatpaks but otherwise, never ever any apps have been installed under .var for me.
On my systems .var contains only app data and configs.

flatpak --installations should print the path to where flatpaks are installed on your system.

flatpak --installations
/run/media/Flatpak/flatpak
/var/lib/flatpak

So, now it’s changed. I’m so confused…

These are the locations where your flatpaks apps and runtimes are installed.

If you were to install flatpaks per user (not systemwide) they would be under ~/.local/share/flatpak.

No. It controls where it gets installed.

It still makes directory in my /home/user/.var folder. I confirmed it by checking space on home folder before and after I run Steam.

I don’t get it. I will give up. Not worth my time. Linux is not what I expected, after 5 years still problems. Using Flatpak because Counter Strike was stuttering on newer mesa when Steam installed from pacman.

Really, Linux sux those days. I never thought that DT on YouTube were right, but he is, he is also using Flatpak because things breaks… What a waste of time.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.