How can I move browser profile data from Flathub to RPM?

Fedora 39 and 40 - Brave browser crashes every time I open it.
I now see i installed it via Flathub, and that’s not a reliable as the RPM version (which I have just installed). I can’t get the Flathub version of Brave to run, crashes before it runs. So I can’t use any ‘sync’ features to move my tabs, data, bookmarks etc to the RPM version.

I am left with only Files approach. but I am totally confused.

The Flathub version stores its data in .var/app/com.brave.browser, the contents look like this:

The RPM version stores its data in ~/.cache/BraveSoftware/Brave-Browser. In there is one folder called ‘Default’, and the contents look like this:

Is anyone able to tell me how to move my flathub Brave profile data to the RPM Brave ‘Default’ folder?

thanks

Does Brave have an import ability?

Not sure what you mean, assume you’re referring to ‘sync’, which I couldn’t use as I couldn’t get Flathub Brave to run at all. but weirdly, after many failures, it suddenly ran after I installed RPM version. I managed to use Sync quickly while it was working and solved the problem.
Thanks

1 Like

This path is some kind of $HOME for apps inside Flatpak. (This is not an accurate description, but for simplicity, you can treat it as $HOME under some situations.) So if you want to copy its data out of Flatpak, you need to find corresponding parts of it’s normal path relative to ~/ .

And an application should never store user data in ~/.cache . As its name suggests, it’s just for cache, aka temporary data. Applications usually have data stored in ~/.local or ~/.config . Chromium stores its data in ~/.config/chromium . As Brave is a Chromium-based browser, it may store its data under a similar path.

Normally, browser’s builtin synchronization will not synchronize your cookie or website data, so you may need to re-login your visited website. Copy whole profile will keep those data.

1 Like

Flatpaks are stored in /.var/app/xxx.brave.Brave/ You can just copy what’s inside of that and paste it where the .rpm looks for the Brave one.

Example like Firefox :

Flatpak
/home/$(User)/.var/app/org.mozilla.Firefox/.mozilla

.rpm
/home/$(User)/.mozilla

2 Likes

Thanks, sorry I messed up there. Yes, you’re right, I should have said ~/.config