Optirun icons repeat

Bug #1319196 reported by Luis Gustavo C Demarchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo-Dock Core
Won't Fix
Undecided
Unassigned

Bug Description

I'm using Cairo Dock 3.3.2, and I have a note with Nvidia optimus, so I install bumblebee and everything is fine, but the progs what I want run with optirun, when I try to put the icon in Cairo Dock, it's repeat the first put, so in the bar appears, for eg, 3 icons of Gimp, and all of three opens Gimp, but I try to put Gimp, Inkscape and Ristretto.

What can I do?

Sory about my english, I'm from Brazil.

Best Regards.

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Cairo-dock-team] [Bug 1319196] [NEW] Optirun icons repeat

Hi,
try to drag and drop the launchers from the Applications Menu, into the
dock.

2014-05-13 23:46 GMT+02:00 Luis Gustavo C Demarchi <<email address hidden>
>:

> Public bug reported:
>
> I'm using Cairo Dock 3.3.2, and I have a note with Nvidia optimus, so I
> install bumblebee and everything is fine, but the progs what I want run
> with optirun, when I try to put the icon in Cairo Dock, it's repeat the
> first put, so in the bar appears, for eg, 3 icons of Gimp, and all of
> three opens Gimp, but I try to put Gimp, Inkscape and Ristretto.
>
> What can I do?
>
> Sory about my english, I'm from Brazil.
>
> Best Regards.
>
> ** Affects: cairo-dock-core
> Importance: Undecided
> Status: New
>
> --
> 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/1319196
>
> Title:
> Optirun icons repeat
>
> Status in Cairo-Dock : Core:
> New
>
> Bug description:
> I'm using Cairo Dock 3.3.2, and I have a note with Nvidia optimus, so
> I install bumblebee and everything is fine, but the progs what I want
> run with optirun, when I try to put the icon in Cairo Dock, it's
> repeat the first put, so in the bar appears, for eg, 3 icons of Gimp,
> and all of three opens Gimp, but I try to put Gimp, Inkscape and
> Ristretto.
>
> What can I do?
>
> Sory about my english, I'm from Brazil.
>
> Best Regards.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1319196/+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
>

Changed in cairo-dock-core:
status: New → Incomplete
Revision history for this message
Luis Gustavo C Demarchi (luisgcdemarchi) wrote :

I try this, but I put the first icon, with drag n drop, for eg Gimp, then Inkscape, the Inkscape comes to bee Gimp icon, and open the Gimp program!!! I'll try to make a video to show with more details.

Revision history for this message
Luis Gustavo C Demarchi (luisgcdemarchi) wrote :

A video to show what happen.

http://youtu.be/yW1017tjaTY

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Cairo-dock-team] [Bug 1319196] Re: Optirun icons repeat

ok, that's quite strange :-)
can you please copy here the content of the new launcher ?
it's located in ~/.config/cairo-dock/current_theme/launchers, it should be
the most recent one.

2014-05-16 15:14 GMT+02:00 Luis Gustavo C Demarchi <<email address hidden>
>:

> A video to show what happen.
>
> http://youtu.be/yW1017tjaTY
>
> --
> 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/1319196
>
> Title:
> Optirun icons repeat
>
> Status in Cairo-Dock : Core:
> Incomplete
>
> Bug description:
> I'm using Cairo Dock 3.3.2, and I have a note with Nvidia optimus, so
> I install bumblebee and everything is fine, but the progs what I want
> run with optirun, when I try to put the icon in Cairo Dock, it's
> repeat the first put, so in the bar appears, for eg, 3 icons of Gimp,
> and all of three opens Gimp, but I try to put Gimp, Inkscape and
> Ristretto.
>
> What can I do?
>
> Sory about my english, I'm from Brazil.
>
> Best Regards.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1319196/+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
Fabounet (fabounet03) wrote :

also, if you restart the dock, are there still 2 gimp launchers ?

2014-05-16 19:16 GMT+02:00 Fabrice Rey <email address hidden>:

> ok, that's quite strange :-)
> can you please copy here the content of the new launcher ?
> it's located in ~/.config/cairo-dock/current_theme/launchers, it should be
> the most recent one.
>
>
> 2014-05-16 15:14 GMT+02:00 Luis Gustavo C Demarchi <
> <email address hidden>>:
>
> A video to show what happen.
>>
>> http://youtu.be/yW1017tjaTY
>>
>> --
>> 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/1319196
>>
>> Title:
>> Optirun icons repeat
>>
>> Status in Cairo-Dock : Core:
>> Incomplete
>>
>> Bug description:
>> I'm using Cairo Dock 3.3.2, and I have a note with Nvidia optimus, so
>> I install bumblebee and everything is fine, but the progs what I want
>> run with optirun, when I try to put the icon in Cairo Dock, it's
>> repeat the first put, so in the bar appears, for eg, 3 icons of Gimp,
>> and all of three opens Gimp, but I try to put Gimp, Inkscape and
>> Ristretto.
>>
>> What can I do?
>>
>> Sory about my english, I'm from Brazil.
>>
>> Best Regards.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/cairo-dock-core/+bug/1319196/+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
Fabounet (fabounet03) wrote :

also, can we please have the content of the .desktop files of gimp and
inkscape, located in /usr/share/applications ?

2014-05-16 19:16 GMT+02:00 Fabrice Rey <email address hidden>:

> also, if you restart the dock, are there still 2 gimp launchers ?
>
>
> 2014-05-16 19:16 GMT+02:00 Fabrice Rey <email address hidden>:
>
> ok, that's quite strange :-)
>> can you please copy here the content of the new launcher ?
>> it's located in ~/.config/cairo-dock/current_theme/launchers, it should
>> be the most recent one.
>>
>>
>> 2014-05-16 15:14 GMT+02:00 Luis Gustavo C Demarchi <
>> <email address hidden>>:
>>
>> A video to show what happen.
>>>
>>> http://youtu.be/yW1017tjaTY
>>>
>>> --
>>> 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/1319196
>>>
>>> Title:
>>> Optirun icons repeat
>>>
>>> Status in Cairo-Dock : Core:
>>> Incomplete
>>>
>>> Bug description:
>>> I'm using Cairo Dock 3.3.2, and I have a note with Nvidia optimus, so
>>> I install bumblebee and everything is fine, but the progs what I want
>>> run with optirun, when I try to put the icon in Cairo Dock, it's
>>> repeat the first put, so in the bar appears, for eg, 3 icons of Gimp,
>>> and all of three opens Gimp, but I try to put Gimp, Inkscape and
>>> Ristretto.
>>>
>>> What can I do?
>>>
>>> Sory about my english, I'm from Brazil.
>>>
>>> Best Regards.
>>>
>>> To manage notifications about this bug go to:
>>> https://bugs.launchpad.net/cairo-dock-core/+bug/1319196/+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
Matthieu Baerts (matttbe) wrote :

Is it not just because both launchers are using the same command with other parameters (e.g.: optirun gimp; optirun inkscape) without defining the StartupWMClass option?

Did you modify/create these launchers?
If yes, is it better if you add "StartupWMClass=Gimp" and "StartupWMClass=Inkscape" in the .desktop file? (I guess you can find these launchers in ~/.local/share/applications/ or /usr/share/applications dirs)

Revision history for this message
Luis Gustavo C Demarchi (luisgcdemarchi) wrote :
Download full text (4.0 KiB)

This what you whant:

/usr/share/applications:
alacarte.desktop libreoffice-writer.desktop
bleachbit.desktop libreoffice-xsltfilter.desktop
bleachbit-root.desktop mimeinfo.cache
blueman-manager.desktop mono-runtime.desktop
bluetooth-sendto.desktop mono-runtime-terminal.desktop
bluetooth-wizard.desktop mousepad.desktop
brasero.desktop mutt.desktop
brasero-nautilus.desktop nm-applet.desktop
bumblebee-app-settings.desktop nm-connection-editor.desktop
bumblebee-indicator.desktop notification-daemon.desktop
cairo-dock-cairo.desktop nvidia-settings.desktop
cairo-dock.desktop openjdk-7-java.desktop
clementine.desktop openjdk-7-policytool.desktop
debian-uxterm.desktop panel-desktop-handler.desktop
debian-xterm.desktop panel-preferences.desktop
display.im6.desktop popcorn-time.desktop
evince.desktop python2.7.desktop
evince-previewer.desktop python3.3.desktop
exo-file-manager.desktop python3.4.desktop
exo-preferred-applications.desktop reportbug.desktop
exo-terminal-emulator.desktop ristretto.desktop
firefox.desktop rygel.desktop
gcr-prompter.desktop screensavers
gcr-viewer.desktop synaptic.desktop
gimp.desktop synaptic-kde.desktop
gkbd-keyboard-display.desktop system-config-printer.desktop
gnome-background-panel.desktop Thunar-bulk-rename.desktop
gnome-bluetooth-panel.desktop Thunar.desktop
gnome-color-panel.desktop Thunar-folder-handler.desktop
gnome-control-center.desktop thunar-settings.desktop
gnome-datetime-panel.desktop thunar-volman-settings.desktop
gnome-display-panel.desktop thunderbird.desktop
gnome-info-panel.desktop vlc.desktop
gnome-keyboard-panel.desktop xarchiver.desktop
gnome-mouse-panel.desktop xfce4-about.desktop
gnome-network-panel.desktop xfce4-accessibility-settings.desktop
gnome-notifications-panel.desktop xfce4-appfinder.desktop
gnome-online-accounts-panel.desktop xfce4-clipman.desktop
gnome-power-panel.desktop xfce4-mime-settings.desktop
gnome-power-statistics.desktop xfce4-mixer.desktop
gnome-printers-panel.desktop xfce4-notifyd-config.desktop
gnome-privacy-panel.desktop xfce4-power-manager-settings.desktop
gnome-region-panel.desktop xfce4-run.desktop
gnome-search-panel.desktop xfce4-screenshooter.desktop
gnome-sharing-panel.desktop xfce4-sensors.desktop
gnome-sound-panel.desktop xfce4-session-logout.desktop
gnome-universal-access-panel.desktop xfce4-settings-editor.desktop
gnome-user-accounts-panel.desktop xfce4-taskmanager.desktop
gnome-wacom-panel.desktop xfce4-terminal.desktop
google-chrome.desktop xfce-backdrop-settings.desktop
gparted.desktop xfce-display-settings.desktop
hplj1020.desktop ...

Read more...

Revision history for this message
Luis Gustavo C Demarchi (luisgcdemarchi) wrote :

Content from ~/.config/cairo-dock/current_theme/launchers

01brasero.desktop 01libreoffice-calc.desktop
01clementine.desktop 01mousepad.desktop
01container.desktop 01ooo-writer.desktop
01firefox.desktop 01popcorn-time.desktop
01gimp.desktop 01Thunar.desktop
01gnome-terminal.desktop 01thunderbird.desktop
01google-chrome.desktop 01ubuntu-software-center.desktop
01i-nex.desktop 01vlc.desktop
01inkscape.desktop 01xfce-settings-manager.desktop

Revision history for this message
Luis Gustavo C Demarchi (luisgcdemarchi) wrote :

What I did after install bumblebee e verify its working is open Alacarte (menu editor) and change the launch icon to run optirun, then i try to put the icon in cairo dock.

Revision history for this message
Luis Gustavo C Demarchi (luisgcdemarchi) wrote :

Mark as solved I try what Mathieu Baerts said and works, just close n open again and now everythins is fine.

Change the launch from ~/.local/share/applications/ or /usr/share/applications dir

add "StartupWMClass=Gimp" and "StartupWMClass=Inkscape" in the .desktop file

Thanks a lot.

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

Thank you for these tests!

@fabounet: should we mark this bug as "Invalid"? These launchers have been modified by the user, it launches the same program but the real class is different.

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

PS: note that it's also possible to edit Cairo-Dock launchers (right click on it) and change the WM class.

Revision history for this message
Fabounet (fabounet03) wrote :

hmm, indeed I would say that if you edit the command, then it's also up to
you to set the correct WM class.
I don't think optirun is widely used enough to make an exception like for
wine.

2014-05-17 16:06 GMT+02:00 Matthieu Baerts <email address hidden>:

> PS: note that it's also possible to edit Cairo-Dock launchers (right
> click on it) and change the WM class.
>
> --
> 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/1319196
>
> Title:
> Optirun icons repeat
>
> Status in Cairo-Dock : Core:
> Incomplete
>
> Bug description:
> I'm using Cairo Dock 3.3.2, and I have a note with Nvidia optimus, so
> I install bumblebee and everything is fine, but the progs what I want
> run with optirun, when I try to put the icon in Cairo Dock, it's
> repeat the first put, so in the bar appears, for eg, 3 icons of Gimp,
> and all of three opens Gimp, but I try to put Gimp, Inkscape and
> Ristretto.
>
> What can I do?
>
> Sory about my english, I'm from Brazil.
>
> Best Regards.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1319196/+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
Matthieu Baerts (matttbe) wrote :

The "problem" with optirun is that you need to edit the launchers. But it also means that it's different than the exception with Wine and I guess you're right: we can't cover all possible actions that are made by the user when modifying original launchers.

Changed in cairo-dock-core:
status: Incomplete → Won't Fix
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.