(edited title+content) Called w/ diff userdata folder are NOT separated! (was "Multiple separate instances not possible?")
-
I want to run completely unrelated, separated, independent in all aspects, instances/sessions/process (choose your favorite name, but profile is a wrong one, it does not mean what i want) of Vivaldi.
There is an archived thread which is not the answer for my question:
https://forum.vivaldi.net/topic/7071/multiple-separate-instances
Suppose the first Vivaldi executed in a new reboot is:
vivaldi --user-data-dir="/choose/any/test1"
After that, i create a totally separated folder, with nothing in common with the above one, and call vivadi (from another window terminal, to be clear it is not affected by the above command) with the command:
vivaldi --user-data-dir="/any/other/test2"
But this second command outputs, right in the launch, the translated version of:
Opening in existing browser session.
So, why this is a problem? Because, when i run 2 separate commands, which i want separated, what happens is that changing the settings in one of them will immedially change the other. It is just a new window of the other! I will change the theme of the second command, and the first one is "changed" as well.
Something i see a lot are "peter's list of chromium command line switches, which has no clear information about how updated they are, or not, which version it can be about, or not, etc. Anyway, it is here.
I searched in the above list for the words session, process and instance. I hope to have not missed the one i am looking for. Can you help me?
Honestly, it is pretty disappointing that Vivaldi still have no command line list for itself. It will be partial, much probably, since chromium has none officially. It can eventually be wrong, in some aspect, in a recent release - but this already happens when we use "found on the net" switches!
-
@dedeco Tested on Debian 11 with Vivaldi 5.5
Both Vivaldi with different user dat dirs start separately. I do not get such issue. -
@DoctorG , do not you get the "opening in existing browser session" message, when you run Vivaldi, at the same time, as the first one with a user data folder passed as argument is running?
And i have exactly what you said: Debian 11, Vivaldi 5.5.
-
@dedeco Two Vivaldis started from separate bash windows, with each has own profile dir, running at the same time:
test@debora:~$ vivaldi --user-data-dir=/tmp/1 [1290:1290:1121/131254.561239:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: no reply", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) [1290:1290:1121/131257.573341:ERROR:CONSOLE(0)] "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) [1290:1290:1121/131325.348131:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Failed to find a tab with id 1954032723", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) [1290:1290:1121/131352.611760:ERROR:CONSOLE(0)] "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) [1290:1290:1121/131352.611825:ERROR:CONSOLE(0)] "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) [1290:1290:1121/131410.987338:ERROR:CONSOLE(0)] "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) [1290:1290:1121/131411.888474:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Failed to find a tab with id 1954032727", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0)
test@debora:~$ vivaldi --user-data-dir=/tmp/2 [1461:1461:1121/131316.183847:ERROR:CONSOLE(0)] "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) [1461:1461:1121/131317.787712:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Could not find guest", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) [1461:1461:1121/131317.921178:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Failed to find a tab with id 188202825", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0)
-
Okey. There is one detail in what i do that can be the difference. Let me prepare some detailed output of command, including this. I will write again soon.
-
@DoctorG , it worked. I hate this. I am not crazy for what is complained in the start of this thread. Another day, soon, i will repeat the test with my current more detailed compressed settings file.
The output of what i did now, with comments also made in the command line, is:
$ # There is one Vivaldi instance running in a folder outside ~ $ # Everything new, from zero, t1 does not exist before: $ vivaldi --user-data-dir="/dev/shm/t1" & [1] 209336 $ [209336:209336:1121/093200.714545:ERROR:CONSOLE(0)] "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) mk $ # The above was not typed by me. It is output from vivaldi running process. $ # I just pressed enter to get a new $PS1, and continued to work. $ # The only thing to do before closing the above is to change the theme to Hot Pink $ # So, we change the theme and close it. $ # This is the basic profile settings i want for all separate instances to be run. I will not $ # want to do settings adjusts everything. The default are far different from what i like. $ # So, i will compress and save it: $ tar cjf basic,profile,2022,11,21.tbz t1 # note: the folder name is included in the tar file $ rm -fr t1 > /dev/zero # to make a "clean test" $ tar xf basic,profile,2022,11,21.tbz $ mv t1/ instance1 renomeado 't1/' -> 'instance1' $ tar xf basic,profile,2022,11,21.tbz $ mv t1 instance2 renomeado 't1' -> 'instance2' $ vivaldi --user-data-dir= /dev/shm/instance instance1/ instance2/ $ vivaldi --user-data-dir="/dev/shm/instance1" & [1] 210259 $ # hot pink window running = good; let's open t.me on it, just to know which window it is $ vivaldi --user-data-dir="/dev/shm/instance2" & [2] 210559 $ # Now, the second call has hot pink theme too, but we will change it to know when we use $ # each profile, so we know what data is available for us and for sites. $ # Second instance is at vivaldi://welcome $ # Let's change its theme to blue print, then close settings window. $ ls[210559:210559:1121/095240.861937:ERROR:CONSOLE(0)] "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0) 52M basic,profile,2022,11,21.tbz 0 instance1 0 instance2 $ # It worked. >:| $ # Maybe if i do not change the extracted folder name and path? $ tar xf basic,profile,2022,11,21.tbz $ vivaldi --user-data-dir="/dev/shm/t1" & [3] 211229 $ # Changed theme on instance 3. No other was affected. Unbelievable. >:( $ jobs -l [1] 210259 Concluído vivaldi --user-data-dir="/dev/shm/instance1" [2]- 210559 Concluído vivaldi --user-data-dir="/dev/shm/instance2" [3]+ 211229 Concluído vivaldi --user-data-dir="/dev/shm/t1" $ # "Concluído" means "finished".
See you another time!
p.s.: In the "mono space font" areas, in these fora, is there a good text width to choose? I usually work and choose 80 symbols. But when the chosen number is 72, this breaks several lines of what i do by writing comments inside them.