Where does a flatpak app expect `~/.local/share/`?

I want to install some rhythmbox plugins from github. The normal method for this is to:

cd ~/.local/share/rhythmbox
git clone https://github.com/luqmana/rhythmbox-plugins.git plugins

With Flatpak, I wanted to put the .local/share folder where flatpak Rhythmbox would expect it:

# I think Flatpak apps expect things in their app-specific folder:
cd ~/.var/app/org.gnome.Rhythmbox3
mkdir -p .local/share/rhythmbox

# This part is kinda like the original instructions:
cd .local/share/rhythmbox
git clone https://github.com/luqmana/rhythmbox-plugins.git plugins

That didn’t work, but I don’t know if that’s because Rhythmbox doesn’t like what I did, or because I just don’t understand where flatpak apps expect things. The appropriate question for this forum is: where do flatpak apps expect user home directory stuff? Am I working from the right assumptions here?

Huh. $XDG_DATA_HOME defaults to $HOME/.local/share. If used flatseal to give Rhythmbox xdg-data-home permission, could I then put my files in the system-wide ~/.local/share/rhythmbox? That seems like giving it more permission. I’d rather put the files in the flatpak rhythmbox-specific directory as long as that’s unlikely to affect updates.

Within the sandbox, XDG_DATA_HOME is ~/.var/app/org.gnome.Rhythmbox3/data

1 Like

Thank you!

I put the files in ~/.var/app/org.gnome.Rhythmbox3/.local/share/rhythmbox/plugins
I think you are saying they belong in ~/.var/app/org.gnome.Rhythmbox3/data/rhythmbox/plugins
Do I understand you correctly?

Hey - that worked!!! Rhythmbox found it! The plugin I wanted didn’t load correctly, but that’s a separate problem. THANK YOU!

Could I have found this out by searching the documentation on the flatpak site? I was unable to find it there, but maybe I didn’t look hard enough, or in the right place.

These are defined in flatpak docs here.

2 Likes