Launching Chrome results in new icon instance on main dock

Bug #1254771 reported by Chuck Torrens
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Cairo-Dock Core
Invalid
Undecided
Unassigned

Bug Description

Ubuntu 12.04 64-bit (Unity)
Cairo-dock 3.3.2
Chrome 31.0.1650.57

Within the past week, launching Chrome from my Cairo-dock main dock now creates a new instance of the Chrome icon, in the area of the dock normally reserved for applications that don't have a launcher. (On my dock, that's towards the left side, just to the right of the separator for the 'help' icon.). Clicking on the launcher again, consequently, results in another instance of Chrome being launched.

Prior to this, launching Chrome from CD would result in a white dot under the launcher - the same as for any other application launched from CD. My other launchers do not exhibit this behavior - e.g., Firefox, LibreOffice, etc. all respond with a white dot (showing it's running), and I can click on it to activate.

Not sure of any changes to system, but it's possible that Chrome was updated.

I tried dropping and re-adding the Chrome launcher, but it did not resolve the issue.

Thanks in advance - attached is the text from the following command:
cairo-dock -l debug >debug.txt

Note I had to ctrl-Z to get it to stop in command line (maybe b/c CD was already running?) - not sure - so take the below with a grain of salt.

Revision history for this message
Chuck Torrens (hockeybum27) wrote :
Revision history for this message
Fabounet (fabounet03) wrote : Re: [Cairo-dock-team] [Bug 1254771] [NEW] Launching Chrome results in new icon instance on main dock
Download full text (3.7 KiB)

Hi,
this is linked to a recent feature for Chrome webapps.
Now, Chrome webapps windows are separated from the Chrome browser window
(they are considered as another application).
According to the Chrome devs, this is how things should be...

2013/11/25 Chuck Torrens <email address hidden>

> Public bug reported:
>
> Ubuntu 12.04 64-bit (Unity)
> Cairo-dock 3.3.2
> Chrome 31.0.1650.57
>
> Within the past week, launching Chrome from my Cairo-dock main dock now
> creates a new instance of the Chrome icon, in the area of the dock
> normally reserved for applications that don't have a launcher. (On my
> dock, that's towards the left side, just to the right of the separator
> for the 'help' icon.). Clicking on the launcher again, consequently,
> results in another instance of Chrome being launched.
>
> Prior to this, launching Chrome from CD would result in a white dot
> under the launcher - the same as for any other application launched from
> CD. My other launchers do not exhibit this behavior - e.g., Firefox,
> LibreOffice, etc. all respond with a white dot (showing it's running),
> and I can click on it to activate.
>
> Not sure of any changes to system, but it's possible that Chrome was
> updated.
>
> I tried dropping and re-adding the Chrome launcher, but it did not
> resolve the issue.
>
> Thanks in advance - attached is the text from the following command:
> cairo-dock -l debug >debug.txt
>
> Note I had to ctrl-Z to get it to stop in command line (maybe b/c CD was
> already running?) - not sure - so take the below with a grain of salt.
>
> ** Affects: cairo-dock-core
> Importance: Undecided
> Status: New
>
> ** Attachment added: "debug.txt file"
>
> https://bugs.launchpad.net/bugs/1254771/+attachment/3916886/+files/debug.txt
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Core.
> https://bugs.launchpad.net/bugs/1254771
>
> Title:
> Launching Chrome results in new icon instance on main dock
>
> Status in Cairo-Dock : Core:
> New
>
> Bug description:
> Ubuntu 12.04 64-bit (Unity)
> Cairo-dock 3.3.2
> Chrome 31.0.1650.57
>
> Within the past week, launching Chrome from my Cairo-dock main dock
> now creates a new instance of the Chrome icon, in the area of the dock
> normally reserved for applications that don't have a launcher. (On my
> dock, that's towards the left side, just to the right of the separator
> for the 'help' icon.). Clicking on the launcher again, consequently,
> results in another instance of Chrome being launched.
>
> Prior to this, launching Chrome from CD would result in a white dot
> under the launcher - the same as for any other application launched
> from CD. My other launchers do not exhibit this behavior - e.g.,
> Firefox, LibreOffice, etc. all respond with a white dot (showing it's
> running), and I can click on it to activate.
>
> Not sure of any changes to system, but it's possible that Chrome was
> updated.
>
> I tried dropping and re-adding the Chrome launcher, but it did not
> resolve the issue.
>
> Thanks in advance - attached is the text from the following command:
> cai...

Read more...

Changed in cairo-dock-core:
status: New → Invalid
Revision history for this message
Chuck Torrens (hockeybum27) wrote :

Thanks for the quick response - I want to get clarification, however. You say that Chrome WebApps are considered separate apps from the browser - I understand that - however, all I am trying to open is the browser (as far as I know, anyway). I am not trying to open any WebApps that I know of....

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello,

> You say that Chrome WebApps are considered separate apps from the browser - I understand that - however, all I am trying to open is the browser

Oh, this is strange!
Are you using Chromium or Google Chrome?

Can you open your browser, launch this command from a terminal, select your browser's window and give us the output messages produced in your terminal?

   $ xprop | grep CLASS

And can you also give us output messages of this command?

    $ cairo-dock -l debug | grep "chromium application detected"

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Cairo-dock-team] [Bug 1254771] Re: Launching Chrome results in new icon instance on main dock

what strange, is that we get a first google-chrome window:

res_name : google-chrome(2588230); res_class : Google-chrome(2589030)

then a second:
res_name : crx_nckgahadagoaajjgafhacjanaoiihapd(25884e0); res_class :
Google-chrome(25892c0)

The second has a convoluted name, which is usually for webapps.
If it was a normal google-chrome window, it should have the same name/class
as the first one.

How did you open the 2nd window ? maybe google-chrome automatically
considers a 2nd window as being a webapps ...

2013/11/25 Matthieu Baerts <email address hidden>

> Hello,
>
> > You say that Chrome WebApps are considered separate apps from the
> browser - I understand that - however, all I am trying to open is the
> browser
>
> Oh, this is strange!
> Are you using Chromium or Google Chrome?
>
> Can you open your browser, launch this command from a terminal, select
> your browser's window and give us the output messages produced in your
> terminal?
>
> $ xprop | grep CLASS
>
> And can you also give us output messages of this command?
>
> $ cairo-dock -l debug | grep "chromium application detected"
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Core.
> https://bugs.launchpad.net/bugs/1254771
>
> Title:
> Launching Chrome results in new icon instance on main dock
>
> Status in Cairo-Dock : Core:
> Invalid
>
> Bug description:
> Ubuntu 12.04 64-bit (Unity)
> Cairo-dock 3.3.2
> Chrome 31.0.1650.57
>
> Within the past week, launching Chrome from my Cairo-dock main dock
> now creates a new instance of the Chrome icon, in the area of the dock
> normally reserved for applications that don't have a launcher. (On my
> dock, that's towards the left side, just to the right of the separator
> for the 'help' icon.). Clicking on the launcher again, consequently,
> results in another instance of Chrome being launched.
>
> Prior to this, launching Chrome from CD would result in a white dot
> under the launcher - the same as for any other application launched
> from CD. My other launchers do not exhibit this behavior - e.g.,
> Firefox, LibreOffice, etc. all respond with a white dot (showing it's
> running), and I can click on it to activate.
>
> Not sure of any changes to system, but it's possible that Chrome was
> updated.
>
> I tried dropping and re-adding the Chrome launcher, but it did not
> resolve the issue.
>
> Thanks in advance - attached is the text from the following command:
> cairo-dock -l debug >debug.txt
>
> Note I had to ctrl-Z to get it to stop in command line (maybe b/c CD
> was already running?) - not sure - so take the below with a grain of
> salt.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1254771/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Chuck Torrens (hockeybum27) wrote :

So it's possible that when I generated the first debug.txt file, I had a 2nd instance of Chrome running. So I closed everything on CD and ran the command again. One thing I noticed is that the command starts another instance of CD. I thought about closing the initial CD, but then of course it would not have ANY app (including the Chrome one) running. So in short, I:
Started CD (actually this starts automatically when I log in)
Launched Chrome
ran the cairo-dock -l debug >debug.txt (results in 2nd instance of CD running)
ctrl-Z

and here is the new file - you can check and see how many instances of Chrome are in it.

I will work on getting the other info Matthieu asked for as well.

Revision history for this message
Chuck Torrens (hockeybum27) wrote :

1. This is Chrome, not Chromium (though I have that installed as well, just haven't used it as much, and it is not set up as a launcher on CD)

2. Output from xprop | grep CLASS is:

WM_CLASS(STRING) = "google-chrome", "Google-chrome"

(note the capital 'G' in the second string)

3. Output from cairo-dock -l debug | grep "chromium application detected" is nil; there is nothing on the screen. HOWEVER - If I open my Google Hangouts plugin (so I can IM, for example), and THEN run the command, I get

 chromium application detected, changing the class 'Google-chrome' to 'crx_nckgahadagoaajjgafhacjanaoiihapd'

Which tells me that the funky name you saw earlier in the initial post was the result of the Hangout (a webapp perhaps?) being open in addition to the browser. That does not change the fact, however, that when the browser is the only Chrome item open, it creates separate icons in the running applications section of the dock, as opposed to just being tied to the launcher like it used to (and like Firefox and other apps do). It's almost as if it's ignoring the 'Mix launchers and applications' setting in CD (which I confirmed is set).

I am attaching a screenshot of my Chrome browser, and the CD, showing Chrome as a separate running app, to give you guys a better idea.

Revision history for this message
Fabounet (fabounet03) wrote :
Download full text (3.9 KiB)

" Output from cairo-dock -l debug | grep "chromium application detected" is
nil"
which is fine, it means the dock didn't detect a webapp;
what you can try is: edit the google-chrome launcher, and in the "extra
parameters", set the class to "google-chrome"
does it change anything ?

PS: you can just open a terminal, quit the dock, and then launch it from
the terminal ;-)
of course, don't close the terminal then.

2013/11/27 Chuck Torrens <email address hidden>

> 1. This is Chrome, not Chromium (though I have that installed as well,
> just haven't used it as much, and it is not set up as a launcher on CD)
>
> 2. Output from xprop | grep CLASS is:
>
> WM_CLASS(STRING) = "google-chrome", "Google-chrome"
>
> (note the capital 'G' in the second string)
>
> 3. Output from cairo-dock -l debug | grep "chromium application
> detected" is nil; there is nothing on the screen. HOWEVER - If I open
> my Google Hangouts plugin (so I can IM, for example), and THEN run the
> command, I get
>
> chromium application detected, changing the class 'Google-chrome' to
> 'crx_nckgahadagoaajjgafhacjanaoiihapd'
>
> Which tells me that the funky name you saw earlier in the initial post
> was the result of the Hangout (a webapp perhaps?) being open in addition
> to the browser. That does not change the fact, however, that when the
> browser is the only Chrome item open, it creates separate icons in the
> running applications section of the dock, as opposed to just being tied
> to the launcher like it used to (and like Firefox and other apps do).
> It's almost as if it's ignoring the 'Mix launchers and applications'
> setting in CD (which I confirmed is set).
>
> I am attaching a screenshot of my Chrome browser, and the CD, showing
> Chrome as a separate running app, to give you guys a better idea.
>
>
> ** Attachment added: "Screenshot of Chrome browser and CD"
>
> https://bugs.launchpad.net/cairo-dock-core/+bug/1254771/+attachment/3918388/+files/Selection_741.jpeg
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Core.
> https://bugs.launchpad.net/bugs/1254771
>
> Title:
> Launching Chrome results in new icon instance on main dock
>
> Status in Cairo-Dock : Core:
> Invalid
>
> Bug description:
> Ubuntu 12.04 64-bit (Unity)
> Cairo-dock 3.3.2
> Chrome 31.0.1650.57
>
> Within the past week, launching Chrome from my Cairo-dock main dock
> now creates a new instance of the Chrome icon, in the area of the dock
> normally reserved for applications that don't have a launcher. (On my
> dock, that's towards the left side, just to the right of the separator
> for the 'help' icon.). Clicking on the launcher again, consequently,
> results in another instance of Chrome being launched.
>
> Prior to this, launching Chrome from CD would result in a white dot
> under the launcher - the same as for any other application launched
> from CD. My other launchers do not exhibit this behavior - e.g.,
> Firefox, LibreOffice, etc. all respond with a white dot (showing it's
> running), and I can click on it to activate.
>
> Not sure of any changes to system, but it's possible tha...

Read more...

Revision history for this message
Samarth Mathur (samarth-math) wrote :

Chuck Torrens:

Try the following:

Go to google chrome settings
unselect "Continue running background apps when Google Chrome is closed"

Close chrome.

Open it again.

Revision history for this message
Paulo Alberto Simoes (paulo-alberto-simoes) wrote :

Samarth, thanks . your tip fix my problem.

Revision history for this message
fleamour (gtx-swift) wrote :

But what if you need to run Chrome in the background? Surely this is manifesting undesirable behaviour. May switch to Plank.

Revision history for this message
Tom Owens (t2m) wrote :

I also see this behavior and noticed that the Calculator launcher does this too.

Revision history for this message
CodyChan (cody-chan-cz) wrote :

Unselecting "Continue running background apps when Google Chrome is closed" doesn't work for me, because it it already unselected by me.

BTW: Google Chrome 46.0.2490.71

Revision history for this message
Alex Mihai (amihaita) wrote :

It is very simple to solve this problem. Go to Cairo Dock chrome icon right click it, choose Google Chrome -> Edit, than write in Class of the program "google-chrome" (without quotes). That's it!
Picture attached.

Revision history for this message
Kevin (wittyman37) wrote :

#14 worked for me on UbuntuStudio 14.04

Revision history for this message
mde (migueldejavu) wrote :

#14 works, and for any other application where this issue also happens (ie. calculator), you can edit that launcher, and from "Extra Parameters/Class of the program" click GRAB, and then point+click your desired window.

Revision history for this message
James Pack (james-packjr) wrote :

Works for me too. But just a bit of clarification. What you put in the class parameter should match the output from the command $ xprop | grep CLASS

Revision history for this message
Ejaz Rasool (er-usmani) wrote :

@amihaita, thanks a lot. This solved my issue. I was having extra icons for skype and sublime text. The dock looks much better now.

@james-packjr, if the result of the command is

WM_CLASS(STRING) = "cairo-dock", "Cairo-dock"

then you're to add the first item (without quotes) after the = sign, so it would be

cairo-dock

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.