Unwanted application exit when using multiple profiles
-
Hello! I discovered Vivaldi late ÃŽn 2016 and, after trying and testing it, I liked it so much that I switched to it with and using it for both personal and professional needs. However, I need to have multiple profiles (separate bookmarks, passwords etc.), and I manages to do so. Here is what I did:
-
in the address bar I typed "chrome:settings" and from there, in the "manage other people" I added the other profiles;
-
for each profile, I right clicked on the Vivalid shortcut, then clicked "properties" and, from the "shortcut" tab, I modified the "target" field so that each shortcut targets a specific profile:
a) "C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --profile-directory="Default"
b) "C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --profile-directory="Profile 3"
c) "C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --profile-directory="Profile 5"
d) "C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --profile-directory="Profile 7"
Everything works fine with these two exceptions:
-
if I open one Vivaldi window on a) and then one on b) and then close either a) or b), the other window closes. However, if I open another window (with CTRL+N) in, let's say a), and then I close one of the windows which correspond to the a) profile, only the intended windows closes, leaving the other in place (which is normal). But if I close b), both windows from the a) profile are closing. In other words, If I have all my profiles open, with one Vivaldi window for each, as soon as I close one of the "main" windows, is like tapping the master switch for closing the entire Vivaldi app - it closes all the profiles.
-
At startup, if I have the "Startup with last session" checked, for all the profiles, this is what happens. If I open a) it restores it's tab pages, but as soon as I open b) while a) stays open, even if b) has it's own set of tabs to restore, the tabs from b) are lost (forever); b) opens like if the "Startup with start page" is checked. However, if I open a), modify it's tabs, then close it and then open b), b)'s tabs are preserved. So, if only one profile is opened at a given time, at startup it's remembering the tabs, but if I open another profile while a previous profile is still open, the last profile loses it's tabs.
-
-
@dorinpetrerosu I'm not familiar with the method you're using to store multiple profiles. I think you're most of the way there, but I would use the
--user-data-dir
flag and point to a directory instead of just providing a profile name.e.g:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir=%LOCALAPPDATA%\Vivaldi\Profile1
As far as I understand the
--profile-directory
flag is designed to only be used one at a time, and switching between from inside the UI. If you want to have multiple instances at once you're better off using--user-data-dir
-
@lonm said in Unwanted application exit when using multiple profiles:
@dorinpetrerosu I'm not familiar with the method you're using to store multiple profiles. I think you're most of the way there, but I would use the
--user-data-dir
flag and point to a directory instead of just providing a profile name.e.g:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir=%LOCALAPPDATA%\Vivaldi\Profile1
As far as I understand the
--profile-directory
flag is designed to only be used one at a time, and switching between from inside the UI. If you want to have multiple instances at once you're better off using--user-data-dir
Thanks for you response.
I've changed to:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir=%LOCALAPPDATA%\Vivaldi\Profile 3
but it says
"Vivaldi cannot read and write to its data directory
C:\Users\Dorin"
I have then put
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe"--user-data-dir="Profile 3"
which solves the problem (the other profile doesn't close) but it starts with a fresh profile. If I type chrome:verison I get:
Profile Path: C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\User Data\Profile 3\Default
-
If I change like so:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir="Profile 3"I get:
Profile Path: C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\Profile 3\Default
with a fresh profileIf I change like so:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir="%LOCALAPPDATA%\Vivaldi\Profile 3"I get:
Profile Path: C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Profile 3\Default
also, with a fresh profileIf I change like so:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir=%LOCALAPPDATA%\Vivaldi\Profile1
I get the profile that should be, but with these "extra" tabs and the above mentioned error:
So, how do I make it pinpoint the correct location using --user-data-dir ?
It is obvious that I can copy/paste the old directories into the new ones, but I-m still hoping for a more elegant solution.
-
Regards of what path I give it, it still stores a "default" to the end of the path, rendering the path path\Profile 3\Default instead of path\Profile 3.
-
@dorinpetrerosu Here's what I would suggest you do:
- Open each of the profiles you already have in a new explorer window
a. To do this, start vivaldi as you used to do
b. Visit vivaldi://about
c. Copy the address listed as "profile path" - mine isC:\Users\lonm\AppData\Local\Vivaldi\User Data\Default
d. Press the windows key / open the start menu
e. Press Ctrl+V to paste the address you copied
f. Press Enter to open that location
g. Go up a level in the folder that opens (Alt + UP)
h. You should see a folder called "Default" as well as all the other folders for the profiles you created
i. Right-Click each folder that contains the profile info and select "open in new window" - Use the shortcuts that use
user-data-dir
and start each of them with the appropriate names. The location you should point to should be%LOCALAPPDATA%\Vivaldi\ProfileNameHere
- I would advise not using spaces in a profile name just to be safe - Close any running vivaldi instances
- In the very first explorer window you created, go up a level again, to get here:
C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi
- You should see listings for each of the user data dirs you just created
- Copy each profile into it's own data dir
a. Open one of the newly created ones
b. Go into the default folder
c. Delete everything in here (It should be mostly empty anyway)
d. From the appropriate other window you have open, copy (NOT MOVE) the contents of this file into the newly emptied Default folder - Try starting each vivaldi using your
user-data-dir
shortcuts and it should function now
- Open each of the profiles you already have in a new explorer window
-
I wouldn't want you to lose any data accidentally, so if that's not clear enough, please say and I'll try to explain better.
-
@lonm It's ok, I've been playing for some while with thees so I'm safe, but thank you!
Well, regarding the main issue, I,ve been doing something simmilar:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir="Profile 3"
which resulted in Profile Path: C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\Profile 3\Default, but after seeing your post, I've did as you said and ended up with something that looks like the image bellow, witch I think it's ok:In each of the directories (Porfile3 and so on) I have a bunch of directories (CertificateTransparency, Crashpad etc.) and a directory named "default", from witch I deleted all the files and copied the contents of the "old" profiles, and everything works ok with one issue: profile7 (targeting "C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir="%LOCALAPPDATA%\Vivaldi\Profile7") does not look ok on the taskbar. What I want to say is that if I open it (if i click on the shortcut in the taskbar - which is the right most from the image bellow) the window that appears, opens with the icon of a black page:
If I acces chrome:settings I do not even see the "place on desktop shortcut" and, even if the right icon is selected (the guy with the glasses), the cange does not reflect in the shortcut icon:
The fact is that from here It cannot be changed for neither profile.
-
@dorinpetrerosu That's really strange. I suspect that's more of a bug with Windows, but I can't be sure. Try:
- closing your running vivaldi instances
- Holding the left shift key
- Right-Clicking a shortcut that works and select properties
- Do the same with the one that doesn't work
- Have a look in the shortcut tab to see if there's any discrepancy with the way it was set up
Windows should normally associate a new window with whatever taskbar shortcut started it, so I wonder if the taskbar shortcut that was created is mismatched somehow.
-
@lonm said in Unwanted application exit when using multiple profiles:
@dorinpetrerosu That's really strange. I suspect that's more of a bug with Windows, but I can't be sure. Try:
- closing your running vivaldi instances
- Holding the left shift key
- Right-Clicking a shortcut that works and select properties
- Do the same with the one that doesn't work
- Have a look in the shortcut tab to see if there's any discrepancy with the way it was set up
Windows should normally associate a new window with whatever taskbar shortcut started it, so I wonder if the taskbar shortcut that was created is mismatched somehow.
Well, I made copy/paste and then changed 3 to 7 at the end of the string, so the shortcut is ok. It's something else.
However, if I pin the new window, and then check the shortcut target, I get:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe".But the problem is that the original shortcut target is:
"C:\Users\Dorin Petre Rosu\AppData\Local\Vivaldi\Application\vivaldi.exe" --user-data-dir="%LOCALAPPDATA%\Vivaldi\Profile7" -
@gwen-dragon Yes, I know I should do that (this is what I did in the first place) but it didn't work, so I tried the other way around.
-
@gwen-dragon said in Unwanted application exit when using multiple profiles:
Please report issues with profile-directory and Vivaldi not using the correct one if pinned to taskbar.
If you found a bug, please report the issue to the developers to fix it.
How to do a bugreport for Vivaldi
Report each bug seperately at https://vivaldi.com/bugreport/
Describe the issue as precise as you can.
Add some information about extensions you use.
Add information about the operating system and version you use.
If you have problems with video or audio give us information about your installed codecs and graphics card/GPU.
Add a exact link to the page where the issue comes up and can be tested.
After reporting the issue, you will receive a confirmation mail from the bugtracker.
In a reply to this mail you can add more information and files (like screenshots or testcases) as attachments and it will be added automatically to bug report.
If you have questions about the bug please ask in forum first and do not forget to post the VB-XXXXX bug number (you can find it in confirmation mail).Thanks in advance for helping us to make Vivaldi better!
I just did that! Thanks!
-
I wanted to see how things work out a couple of days and to make sure everything is ok. And, yes, that's the way it is!
Thank you guys for helping me
-
-