Firefox two versions on the plank dock

Asked by Simon


I use elementary OS 0.3 Freya (32-bit) and i need two version of Firefox.

I also downloaded and installed ~/opt/firefox. In ~/.local/share/applications/ i am create file "Firefox Nightly 39.0a1" this file containe:

But for some reason and i have unusable configuration. See video

Default Firefox and nightly build collapsed in one icon. Where did I err?

Best Regards.

Question information

English Edit question
Plank Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Rico Tzschichholz (ricotz) said :

Check both for their WM_CLASS in case of the default firefox it should be WM_CLASS(STRING) = "Navigator", "Firefox".

If you are lucky then the nightly defines a different one which you need to add to your custom desktop-file, like StartupWMClass=FirefoxNightly

You can use "xprop" to determine the wmclass.

Revision history for this message
Simon (sam-ua) said :

Add to my custom desktop-file "StartupWMClass=FirefoxNightly" not working and "xprop" shows WM_CLASS(STRING) = "Navigator", "Firefox".

If change exec section in custom desktop-file on: "Exec=...firefox -P beta -profile .../myprof --class='FirefoxNightly'" then

$ xprop WM_CLASS
WM_CLASS(STRING) = "Navigator", "FirefoxNightly"

And temporarily Plank, Firefox and Nightly begin to work as I want, but after several launches NewWindow/NewPrivateWindow on standart Firefox and Nignhtly is broken again((

Revision history for this message
Rico Tzschichholz (ricotz) said :

This seems to be a problem of with firefox. I have played with it a bit.

Starting the firefox-nightly with a custom launcher which properly passes a custom wmclass work fine. If the nightly is restarted it looses that wmclass and obviously can't be properly matched anymore.

Having one firefox-release instance running will result in activating it if trying to start the firefox-nightly. So -new-instance is mostly required to work around that.

Revision history for this message
Simon (sam-ua) said :

My last ~/.local/share/applications/FirefoxNightly39.0a1.desktop

In standart firefox desktop file(/usr/share/applications/firefox.desktop) iam add option -new-instance too.

This configuration is usable, but dont work right-click on Nightly and choice "Open a New Window" and "Open a New Private Window", but I had use option -no-remote.

Can you help with this problem?

Provide an answer of your own, or ask Simon for more information if necessary.

To post a message you must log in.