Subdock issue with .desktop shortcuts

Bug #1057584 reported by JoeBaloney
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo-Dock Core
Won't Fix
Undecided
Fabounet

Bug Description

Wasn't sure exactly how to describe this.

I used playonlinux to create 4 shortcuts (.desktop files) for wine to launch word, excel, powerpoint and onenote. It placed them on my desktop, and I dragged them into my launcher subdock.

When you look in the dock though it shows 4 icons of the same type, and they all launch the same application. if I look in ".config/cairo-dock/current_theme_launchers/" they are all different files, and they all have different content. If I double click them on my desktop they open the correct application.

I have attached a screenshot showing the icons on my desktop, in the subdock, and in the config directory.

One other thing, if I rename the files and reload cairo-dock, the icon being show in the subdock, and the program it launches changes. It is always 4 of the same thing, but it might be Excel, Word, or whatever.

This is 3.0.99.rc1, ubuntu 64 bit, gnome-session.

Revision history for this message
JoeBaloney (joe-baloney) wrote :
Revision history for this message
JoeBaloney (joe-baloney) wrote :

Powerpoint .desktop file

Revision history for this message
JoeBaloney (joe-baloney) wrote :

Word .desktop file (the others are the same, with different arguments)

Revision history for this message
Fabounet (fabounet03) wrote :

Hi,
well this is actually normal, since the program in the command is "playonlinux".
It's the same for all the desktop files, so they have the same icons and class, as expected.
The dock handles wine command though, so if you set the wine command instead of using playonlinux, the dock will recognize the different launchers.
for instance, "wine /path/to/exe"
This is the most straightforward way to launch a .exe program, you don't really need to call playonlinux.

We could add support for it, however it's not very common (yet), and we can't add exception in the code for every software :-)

Changed in cairo-dock-core:
assignee: nobody → Fabounet (fabounet03)
status: New → Won't Fix
Revision history for this message
Victor Kokaram (vkokaram) wrote :

I have the same issue using Crossover intead of Wine. Is there a fix for this?

Revision history for this message
JoeBaloney (joe-baloney) wrote :

As I recall, my problem was that I was dragging the .desktop file to the launcher. Instead I created a launcher and added the contents of the .desktop file instead (Its been awhile, and I don't remember if that was exactly it) but after that it was fine.

Revision history for this message
eleandar (eleandar) wrote :

I have a similar issue.

I created a desktop file that launch a script in a gnome-terminal. I set a personnalized icon for this shortcut.
  Desktop elements:
    Icons: myicon.png
    command: gnome-terminal -e killjack.sh
    Name: Jack Panic !

And now when i try to add the gnome-terminal with a drag and drop from Application menu to cairo dock, it displays myicon.png in place of gnome-terminal.png.

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

Hello,

@eleandar: yes, it's because the dock detects that this launcher will manage all "gnome-terminal" programs (due to the command that you use).
As workaround, you can enable "Launch in a terminal" option (in "extras parameters" section of your launcher' settings) and remove "gnome-terminal -e" from your launcher's command
(or you can also manually add a new Gnome-terminal launcher)

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Bug 1057584] Re: Subdock issue with .desktop shortcuts

If you don't want to link a launcher to a program, you can enable the
corresponding option in the launcher's configuration.

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

> Hello,
>
> @eleandar: yes, it's because the dock detects that this launcher will
> manage all "gnome-terminal" programs (due to the command that you use).
> As workaround, you can enable "Launch in a terminal" option (in "extras
> parameters" section of your launcher' settings) and remove "gnome-terminal
> -e" from your launcher's command
> (or you can also manually add a new Gnome-terminal launcher)
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1057584
>
> Title:
> Subdock issue with .desktop shortcuts
>
> Status in Cairo-Dock : Core:
> Won't Fix
>
> Bug description:
> Wasn't sure exactly how to describe this.
>
> I used playonlinux to create 4 shortcuts (.desktop files) for wine to
> launch word, excel, powerpoint and onenote. It placed them on my
> desktop, and I dragged them into my launcher subdock.
>
> When you look in the dock though it shows 4 icons of the same type,
> and they all launch the same application. if I look in ".config/cairo-
> dock/current_theme_launchers/" they are all different files, and they
> all have different content. If I double click them on my desktop they
> open the correct application.
>
> I have attached a screenshot showing the icons on my desktop, in the
> subdock, and in the config directory.
>
> One other thing, if I rename the files and reload cairo-dock, the icon
> being show in the subdock, and the program it launches changes. It is
> always 4 of the same thing, but it might be Excel, Word, or whatever.
>
> This is 3.0.99.rc1, ubuntu 64 bit, gnome-session.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1057584/+subscriptions
>

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.