Getting Wine programs to work right in Docky

Asked by Stephen Wilson

I am having problems getting Docky to handle Wine apps (Microsoft Office Word, Excel, Powerpoint) correctly. I'm using xubuntu 11.10 but I suspect this would apply more widely.

It is easy enough to make launchers, but the windows don't get linked up to the launchers. I tried setting StartupWMClass in the launchers as described here:

http://wiki.go-docky.com/index.php?title=How_to_Customize_Window_Matching

But it doesn't seem to work. If you run xprop on any Wine Office app, you get:

WM_CLASS(STRING) = "WINWORD.EXE", "Wine"

It seems that the second of the two strings is the one used by Docky? And it's always "Wine" no matter which Wine app it is.

Does anyone know how to make Wine launchers for Docky that will correctly recognize their windows?

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Docky Edit question
Assignee:
No assignee Edit question
Solved by:
Robert Dyer
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Stephen Wilson (smwilsonau) said :
#2

Can we please re-open this? Windows of MS office apps in WINE get their own dock icons instead of being affiliated with the launcher. I realize this has been discussed before, but it's not working for me, on multiple systems.

I am running Docky 2.0.6 on Ubuntu 10.04 on one machine, Docky 2.1.4 on Xubuntu 12.04 on another. Same exact behavior!

I have in the .desktop:
StartupWMClass=WINWORD.EXE

I have tried various similar things, but no luck.

Thanks for any help.

Revision history for this message
Robert Dyer (psybers) said :
#3

My only recommendation is to try Docky 2.2.0, which requires either compiling from source or using our development PPA.

Docky 3.x and later will use the BAMF library for application matching (the one Unity uses) and thus we are very reluctant to work on this issue any more in 2.x.

Revision history for this message
Stephen Wilson (smwilsonau) said :
#4

Fair enough. When can we expect 3.x?

Revision history for this message
Stephen Wilson (smwilsonau) said :
#5

Could you add this to the wishlist for 3.x? That MS Office WINE apps will dock properly.

I realize it's a bit lame to still be using Office in WINE but I'm afraid OO is just not up to snuff and I do need to get my work done!

Thanks.

Revision history for this message
Robert Dyer (psybers) said :
#6

Well as stated, we will use BAMF for 3.x so as long as they support it, we do too. You can test it out by running Unity now and seeing what the behavior is like. Or you can try Plank, which is what Docky 3 is based on.

There is no timeline for 3.x.

Revision history for this message
Stephen Wilson (smwilsonau) said :
#7

Thanks for your suggestions. I would like to try plank but it seems not to be in the ppa for lucid anymore, although it says here that it should be:

http://wiki.go-docky.com/index.php?title=Plank:Installing#Packages

Can I install plank for lucid from a ppa, or do I need to do so from source?

Thanks.

Revision history for this message
Robert Dyer (psybers) said :
#8

To be honest I'm not sure we support Lucid. At the very least, we now require valac 0.14.1, but if you get the c++ generated sources then I don't know what the requirements now are but it might compile on Lucid if you get the gtk2 version. I guess I need to update that wiki page (as I forgot we even made that page!).

Definitely we don't have a PPA for Lucid, as we just dropped Maverick support for the PPA. We officially only support current Ubuntu release + 2 previous or back to the last LTS release (whichever is oldest). So currently we support 11.04, 11.10, and 12.04.

Revision history for this message
Stephen Wilson (smwilsonau) said :
#9

Ok, I am not sure how to get the c++ generated sources. I would be interested in trying this, I don't really want to update my 10.04 LTS system for another year. Could you let me know how getting the c++ sources differs from just getting the sources according the instructions on the wiki?

Thank you.

Revision history for this message
Robert Dyer (psybers) said :
#10

The sources in the bzr repository (which the wiki instructions are for) are Vala sources. They require Vala 0.14.1 or newer to compile (which generates C code).

There is a new LTS out, 12.04. Plank works wonderfully with that. ;-)

Revision history for this message
Stephen Wilson (smwilsonau) said :
#11

Okay thanks for the info.

Yes, I have a "testing" installation of 12.04. But on my main work machine, I'm reluctant to update until I have to... I need to go from ubuntu to xubuntu (can't stand unity) so I think I will need to do a complete reinstall.

Anyway, thanks for your help.

Revision history for this message
Stephen Wilson (smwilsonau) said :
#12

I installed plank on xubuntu 12.04. It looks very nice.

The WINE apps *almost* work. The dock recognizes the windows and keeps them with the launcher. Excel and Powerpoint seem to work perfectly.

Word does not quite work right: even though the dock recognizes the open windows and associates them with the launcher (right-clicking the icon in the dock lists them correctly), it does not show the glowing lights below (to indicate how many open windows).

Perhaps this does not belong here anymore, since it's now a plank issue, not a docky issue. But if you're building the next docky based on plank, then I guess you'd want to know about it...

Revision history for this message
Best Robert Dyer (psybers) said :
#13

I think there is an open bug for your issue already in Plank.

Revision history for this message
Stephen Wilson (smwilsonau) said :
#14

Thanks Robert Dyer, that solved my question.