• Browser
  • Mail
  • News
  • Community
  • About
Register Login
HomeBlogsForumThemesContributeSocial

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Desktop
    3. Archive
    4. Restore last session

    Solved Restore last session

    Archive
    23
    38
    22.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Med1aN1ck
      M
      Med1aN1ck
      last edited by

      Probably had two browser windows open and first closed the one with many tabs ... I have the following large files in the Default folder:

      Last Session
      Last Tabs
      Session Storage/014330.ldb
      Session Storage/MANIFEST-000001

      Is it possible to restore from any of those the window session with many tabs?

      1 Reply Last reply Reply Quote 2
      • Med1aN1ck
        M
        Med1aN1ck
        last edited by Med1aN1ck

        HOW TO RESTORE URLS FROM 'Last Session/Tab' FILES:

        1. Download the Chromagnon tool, unzip & put the Last session/tab files into it
        2. Download & install Python 2 (the 2nd version)
        3. Launch CMD, navigate to your unzipped Chromagnon tool & run:

        python chromagnonSession.py "Current Session" > current_session.log
        OR
        python chromagnonTab.py "Current Tabs" > current_tabs.log
        

        The tabs' urls are exported together with the history of each tab.

        Treap
        T
        N
        2 Replies Last reply
        Reply Quote 4
        • iAN CooG
          I
          iAN CooG
          last edited by

          don't you see them in the trashcan (upper right)?

          http://iancoog.altervista.org/
          --=[]=-----------------------------------------------------------------------=[]=--
          Windows10 64bits - 8core i9-9900K @ 3.60GHz - 16Gb RAM - nVidia GT1030

          1 Reply Last reply Reply Quote 1
          • Med1aN1ck
            M
            Med1aN1ck
            last edited by Med1aN1ck

            I didn't look there at the time and there isn't anything now - can anything be restored from the files listed?

            ...or the folder 'Session Storage'?

            1 Reply Last reply Reply Quote 0
            • Med1aN1ck
              M
              Med1aN1ck
              last edited by

              There's a large "Last session" and a large "Last tab" file that remained from before accident, as well as a few backup files in the "Session storage" directory - can one at least read their contents ?

              1 Reply Last reply Reply Quote 0
              • Med1aN1ck
                M
                Med1aN1ck
                last edited by Med1aN1ck

                HOW TO RESTORE URLS FROM 'Last Session/Tab' FILES:

                1. Download the Chromagnon tool, unzip & put the Last session/tab files into it
                2. Download & install Python 2 (the 2nd version)
                3. Launch CMD, navigate to your unzipped Chromagnon tool & run:

                python chromagnonSession.py "Current Session" > current_session.log
                OR
                python chromagnonTab.py "Current Tabs" > current_tabs.log
                

                The tabs' urls are exported together with the history of each tab.

                Treap
                T
                N
                2 Replies Last reply
                Reply Quote 4
                • iAN CooG
                  I
                  iAN CooG
                  last edited by

                  Cool, thanks for the link.

                  http://iancoog.altervista.org/
                  --=[]=-----------------------------------------------------------------------=[]=--
                  Windows10 64bits - 8core i9-9900K @ 3.60GHz - 16Gb RAM - nVidia GT1030

                  1 Reply Last reply Reply Quote 0
                  • Treap
                    T
                    Treap @Med1aN1ck
                    last edited by

                    @med1an1ck
                    cool, i understand nothing after 2., how do i make it work ? :V

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nebu @Med1aN1ck
                      last edited by

                      @med1an1ck said in Restore last session:

                      HOW TO RESTORE URLS FROM 'Last Session/Tab' FILES:

                      1. Download the Chromagnon tool, unzip & put the Last session/tab files into it
                      2. Download & install Python 2 (the 2nd version)
                      3. Launch CMD, navigate to your unzipped Chromagnon tool & run:

                      python chromagnonSession.py "Current Session" > current_session.log
                      OR
                      python chromagnonTab.py "Current Tabs" > current_tabs.log
                      

                      The tabs' urls are exported together with the history of each tab.

                      Hi. What do you mean by 1. "... put the Last session/tab files into it"? Put them where? In the Chromagon folder?

                      I also have Python 3.5 installed, is it necessary to run exactly version 2?

                      LuigiTheHunter
                      L
                      hmazuji
                      H
                      2 Replies Last reply
                      Reply Quote 1
                      • ROTFL
                        R
                        ROTFL
                        last edited by

                        @Med1aN1ck Interesting... 🙂

                        ...but

                        0_1534764822756_98772f94-c65d-4eeb-9093-1c46222ce779-image.png

                        1 Reply Last reply Reply Quote 4
                        • LuigiTheHunter
                          L
                          LuigiTheHunter @Nebu
                          last edited by A Former User

                          @Nebu @Treap

                          1. Copy the files ["Last Session","Last Tabs"] from C:\Users\%username%\AppData\Local\Vivaldi\User Data\Default to the directory where you saved the Chromagnon tool.
                          2. Run this: "python chromagnonSession.py "Current Session" > current_session.log"
                          3. And or this: "python chromagnonTab.py "Current Tabs" > current_tabs.log"
                          4. I then you put the files in C:\Users\%username%\AppData\Local\Vivaldi\User Data\Default\Session Storage
                          5. Profit
                          C
                          1 Reply Last reply
                          Reply Quote -1
                          • D
                            DEUnit
                            last edited by Pesala

                            @Med1aN1ck said in Restore last session:

                            Python 2 (the 2nd version)

                            Hello. Sorry, if I have to post in the old thread. Have exactly the same problem.

                            Where do you get the Python 2 (the 2nd version) for download?

                            There are many versions here: https://www.python.org/downloads/

                            Could anyone help me, please.

                            1 Reply Last reply Reply Quote 0
                            • D
                              DEUnit
                              last edited by DEUnit

                              @Gwen-Dragon

                              Have the version 2.7.15 installed.

                              How does that work with the commands exactly?

                              I think I'm doing something wrong.

                              0_1549879061572_Cmd.jpg

                              0_1549879362217_Cmd2.jpg

                              0_1549879399106_Cmd3.jpg

                              Komposten
                              K
                              1 Reply Last reply
                              Reply Quote 0
                              • Komposten
                                K
                                Komposten Translator @DEUnit
                                last edited by Komposten

                                @DEUnit
                                Your first command is missing the spaces that separate the parameters.
                                Your second command has a trailing " that shouldn't be there.

                                That said:

                                1. Did you navigate CMD to the folder containing the .py scripts (where you are in your second screenshot) before trying to run the command?
                                2. The Last Session and Last Tabs file should probably be in the same folder as chromagnonTab.py and chromagnonSession.py, not within the chromagnon folder you have highlighted in screenshot 2.
                                1 Reply Last reply Reply Quote 2
                                • D
                                  DEUnit
                                  last edited by

                                  Thank you very much for your detailed help.

                                  A very nice forums moderator 😊

                                  Problem has been successfully completed.👍

                                  1 Reply Last reply Reply Quote 1
                                  • C
                                    comandos @LuigiTheHunter
                                    last edited by

                                    @LuigiTheHunter Ported to Python 3, run them, put to that folder. Nothing happened.

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      comandos
                                      last edited by

                                      @Gwen-Dragon Nope. You need to port those scripts to Python 3.

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        chorn
                                        last edited by

                                        Hi,

                                        i followed the instructions and got the current_session.log and current_tabs.log files, looks good, then i tried to

                                        I then you put the files in "C:\Users%username%\AppData\Local\Vivaldi\User...
                                        

                                        but nothing happens, no session or tab is restored after a restart and i dont see any menu that would do so.

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          chorn
                                          last edited by

                                          Hi Gwen,

                                          the export via the python tool worked fine, i just don't know what to to with these files - how to import them back into Vivaldi - as just putting them in any session folder did nothing and the format doesn't look like any of the other files.

                                          greetings.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            chorn
                                            last edited by

                                            Hi Gwen,

                                            isnt it User Data instead of User/Data? But i already copied the files there, i start up Vivaldi and it doesnt restore anything, all that shows up is the tab with this forum. I also tried to delete the Current/Last Tabs and Current/Last Session files first, but no difference. I dont think its a file naming mismatch as i copied the python CMD commands from here.

                                            1 Reply Last reply Reply Quote 0
                                            • C
                                              chorn
                                              last edited by

                                              thx for caring.

                                              i just came up with an individual solution: after exporting the Current Session file with the python script, one could just use this PHP script to convert it into a bookmark file that can be imported back into Vivaldi

                                              <?php
                                              
                                              $log = file_get_contents('current_session.log');
                                              
                                              $lines = explode("\n", $log);
                                              $i = 0;
                                              foreach($lines as $line){
                                                  if(strpos($line, 'SetTabWindow') !== false){ $i++; }
                                                  if(strpos($line, 'http') !== false){ $tabs[$i] = substr($line, strpos($line, 'http')); }
                                              }
                                              $tabs = array_unique($tabs);
                                              
                                              echo '<!DOCTYPE NETSCAPE-Bookmark-file-1>
                                              <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
                                              <!-- This is an automatically generated file.
                                              It will be read and overwritten.
                                              Do Not Edit! -->
                                              <TITLE>Bookmarks</TITLE>
                                              <H1>Bookmarks</H1>
                                              <DL><p>'."\n";
                                              
                                              foreach($tabs as $tab){
                                                  echo '<DT><A HREF="'.$tab.'">'.$tab.'</A>'."\n";
                                              }
                                              
                                              echo '</DL><p>';
                                              
                                              

                                              i used it like php log2bookmark.php > bookmarks.html

                                              maybe that helps anyone.

                                              S
                                              R
                                              2 Replies Last reply
                                              Reply Quote 0
                                              Loading More Posts
                                              • Oldest to Newest
                                              • Newest to Oldest
                                              • Most Votes
                                              Reply
                                              • Reply as topic
                                              Log in to reply
                                              • 1
                                              • 2
                                              • 1 / 2
                                              • First post
                                                Last post

                                              Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.

                                              Copyright © Vivaldi Technologies™ — All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status