I've two Google Chrome profiles, one is a personal profile and the other is a work profile.
Until now, I was switching between profiles from the top right corner of the google chrome menu. So whenever I close chrome and reopen, it'd open the window for whatever the last opened profile was.
I've implemented a solution for opening desired profile directly by creating two separate .desktop
files in ~.local/share/applications
.
This allows me to bypass the profile switching step from inside chrome when I wanted to open a profile other than what was opened by default.
The actual purpose is solved, but there's another problem that I'm facing after implementing this.
I've added shortcuts for both profiles to the launcher.
- I open let's say 1st profile by clicking on its icon from the launcher.
- Now I open the 2nd profile in the same way.
But the launcher highlights only the icon of the first window and shows two dots as if two windows are open for the first icon only (Attachment). Which is not the case.
I think I'm missing something in my .desktop
files which I'm not able to find the solution of anywhere. I'm attaching the content of both files here.
- chrome-default-profile.desktop
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Google Chrome Main
Exec=google-chrome --profile-directory=Default
Icon=chrome_default.png
- chrome-work-profile.desktop
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Google Chrome Work
Exec=google-chrome --profile-directory="Profile 2"
Icon=chrome_work.png
I hope there's some solution for this because without this my purpose for a separate profile icon is not solved fully.
What it does is it starts a whole new Chrome Session with the guest profile in which none of my existing profiles are listed.
– TheCleverIdiot May 09 '21 at 15:59google-chrome
. Because the mentioned answer is forchromium
. – TheCleverIdiot May 09 '21 at 16:23