Skip to content

How to convert session information from old TST 0.19.x to new TST 2.x

YUKI "Piro" Hiroshi edited this page Nov 11, 2017 · 29 revisions

TST 0.19.x (final version) has a feature to export tree structure information, and TST 2.x can import that. However, the migration steps are too complicated.

Instead, there is another choice treestyletab-sesssionstore-migrate: a utility command to migrate embedded tree structure information in sessionstore.jsonlz4.

On Windows

Contribution required: please write genuine steps to install the package on Windows!!

If you are using Windows 10 Fall Creators Update and WSL (Windows Subsystem for Linux) is already activated, descriptions for Linux is available for you. The profile directory is accessible like /mnt/c/Users/(username)/AppData/Roaming/Mozilla/Firefox/Profiles/xxxxx.default. For more details, see the next section.

On Linux

Install Node.js 8.6.0 or later at first. If you are using old Node.js, n Nodde version manager will help you to install newer versions of Node.js. Of source you need to install npm also.

Then install the treestyletab-sessionstore-migrate package globally:

$ sudo npm install -g treestyletab-sessionstore-migrate

Now you are ready to migrate. Go to the profile directory. You can see the path to the profile directory via about:support. Then, run the treestyletab-sessionstore-migrate command like:

$ cd ~/.mozilla/firefox/xxxxx.default/
$ mv sessionstore.jsonlz4 sessionstore.jsonlz4.bak # backup for safety! 
$ treestyletab-sessionstore-migrate sessionstore.jsonlz4.bak sessionstore.jsonlz4