micheleg / dash-to-dock

A dock for the Gnome Shell. This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops.
https://micheleg.github.io/dash-to-dock/
GNU General Public License v2.0
3.89k stars 461 forks source link

Weird chromimum launcher issue. #817

Open developer91234 opened 6 years ago

developer91234 commented 6 years ago

I have two separate chromium profiles running in two separate user directories.

I have two separate .desktop launchers for each of these profiles. When I use these launchers anywhere outside dash to dock, they run the correct profile. But when I click them from dash to to dock, they just open another window within the chromium profile that's already open, as if I just clicked a regular chromium launcher without any args. Is D2D stripping out commandline args? How is that ever possible?

Launcher 1

[Desktop Entry]
Version=1.1
Type=Application
Name=Chromium Web Browser
GenericName=Web Browser
Comment=Access the Internet
Icon=network-chromium
Exec=/usr/bin/chromium-browser --user-data-dir="/home/USER/.config/chromium" --profile-directory="Profile 2" %U
Actions=new-window;new-private-window;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
Categories=Network;WebBrowser;
Keywords=web;browser;internet;
StartupWMClass=Chromium-browser (/home/USER/.config/chromium)

[Desktop Action new-window]
Name=Open a New Window
Exec=chromium-browser %U

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=chromium-browser --incognito %U

Launcher 2

[Desktop Entry]
Version=1.1
Type=Application
Name=Chromium (secure)
GenericName=Web Browser
Comment=Access the Internet
Icon=network-chromium-secure
Exec=env GTK_THEME=Adwaita:dark /usr/bin/chromium-browser --user-data-dir="/home/USER/.config/chromium-secure" --profile-directory="Default" %U
Actions=new-window;new-private-window;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
Categories=Network;WebBrowser;
Keywords=web;browser;internet;secure;
StartupWMClass=chromium-browser (/home/USER/.config/chromium-secure)

[Desktop Action new-window]
Name=Open a New Window
Exec=chromium-browser %U

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=chromium-browser --incognito %U
micheleg commented 6 years ago

Could be the same of #610

dagomar commented 5 years ago

I have a similar issue. Dash to dock doesn't seem to use .desktop files? I added a touchscreen setting to my Firefox launcher, which works when I run it anywhere but dash to dock.

raqbit commented 5 years ago

It seems like this issue is caused because you did not modify the Exec line of the new-window action of the .desktop file, which is what dash-to-dock runs when you launch an application which has a new-window action. I came across the same issue, modified the new-window action, relogged and it is launching correctly now.