Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1418  / 2 Years ago, fri, december 3, 2021, 6:14:45

I prepared a custom .desktop file for my chromium browser that loads a different user profile. When ever i click the icon now it open the browser, but also uses a new icon on the launcher bar (not locked to the launcher). Is there any way to tell the program to keep connected to the first icon?



[Desktop Entry]
Type=Application
Name=Second Browser
Exec=chromium-browser --user-data-dir="/home/patrick/bin/chrome-profiles/second"
TryExec=chromium-browser
Icon=/home/patrick/.local/share/applications/icons/browser.png
MimeType=text/html;

More From » unity

 Answers
4

I found an easy way to accomplish exactly what I am trying to do:



StartupWMClass=www.domainname.com__some_path


will group all windows of the same domain and/or path. You can find out the WM_CLASS by executing the following command on the shell and clicking the window you want to find the class out for:



xprop WM_CLASS


This way you can have more than one Chromium-browser entry on your launchbar and the entries stay grouped together.


[#35881] Saturday, December 4, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
trousransla

Total Points: 285
Total Questions: 112
Total Answers: 113

Location: Spain
Member since Thu, Dec 23, 2021
2 Years ago
;