Transferring open tabs to restore in linux using the terminal

Hello,
I have an ubuntu computer and I was regularly opening tabs on brave on it knowing that no matter what happens as long as I press “restore” every time I open Brave the open tabs will remain open.
That computer unfortunately stopped working properly and now I can only open a terminal on it. I bought a new computer and installed ubuntu on it and now I want to transfer the open tabs from the old computer to the new one, i.e. that the tabs that would open if I were to open brave on the old computer and press “restore” would be open on the new computer.

How can this issue be reproduced?

  1. Open some tabs on Brave on a linux computer.
  2. Restart the computer or kill Brave.
  3. How can I see the tabs or restore them in any way without opening Brave?

I tried to copy .config/BraveSoftware from the old computer to the new one but when I opened brave the “restore” popup didn’t show up and it seems like the folder was completely ignored.

Expected result: Either seeing a list of urls that were open on the old computer, preferably sorted by the window where they were open, or opening brave and having the option to press “restore” and restore the old tabs.

Brave Version: I have no idea what it was on the old computer, maybe you can help me find it if it’s important, I probably last updated it a couple of months ago. On the new computer it’s 1.58.124 Chromium: 117.0.5938.62 (Official Build) (64-bit).

Thanks! Roee.

Solved it! I found the Tabs and Session file in the .config folder in the old computer and used Chromagnon to parse them:

  1. git clone https://github.com/JRBANCEL/Chromagnon.git
  2. cd Chromagnon
  3. git checkout SNSS
  4. python2 chromagnonSession.py <config dir>/BraveSoftware/Brave-Browser/Default/Sessions/Session_<numbers> | grep SetTabIndex -B 2

You should see triples of lines where the first line has the most recent url viewed at a tab and the last line has its index in the window, for me it was increasing from zero onwards for the first window and then again for the second one.
If anyone else has a similar problem, I hope this will help you!