This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Icon Launchers for Wine Apps?

Tags: None
(comma "," separated)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Icon Launchers for Wine Apps?

Fri Mar 22, 2013 8:54 am
I'm not aware of the exact specifics of the icon launcher system i'm afraid.
It may be that supporting Wine may require specific code to handle it's use case...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
luttztfz
Registered Member
Posts
6
Karma
0
OS
Under System SettingsWindow Behavior, there are these two items: KWin Scripts and Window Rules. With both it is possible to change the behaviour for specific program windows and how they are treated by KWin.

I’m definitely not an expert, but wouldn’t it be possible to use these two existing features to make the wine application appear as the actual linked application (the one with .exe, and with the icon from the link it was invoked with) instead of being treated as the wine application itself?

If this could be fixed by a script or rule, the main KWin application wouldn’t have to “learn” special treatment for wine exclusively and this should be favorized. Only, I wouldn’t know how to do it and, which is the prerequisite: if it is possible at all.
luebking
Karma
0

Re: Icon Launchers for Wine Apps?

Fri Mar 22, 2013 8:21 pm
"No"

KWin rules exist to workaround bogus clients, certainly not to alter their identification (what is supposed to be done by the client ONLY and ever - in doubt wine could just immediately "fix" that back)

Checking notepad.exe, wine apparently sets the ClassName to the binary (notepad.exe) while the ClassClass is Wine
-> the solution in this case would be for the taskbar to judge by ClassName instead of ClassClass
mbunal
Registered Member
Posts
3
Karma
0

Re: Icon Launchers for Wine Apps?

Sun Mar 24, 2013 6:39 am
luebking wrote:Checking notepad.exe, wine apparently sets the ClassName to the binary (notepad.exe) while the ClassClass is Wine
-> the solution in this case would be for the taskbar to judge by ClassName instead of ClassClass

i tried ClassName but i lost icons. only ClassClass work for icons. but it was grouping still.
luebking
Karma
0

Re: Icon Launchers for Wine Apps?

Sun Mar 24, 2013 8:35 am
What do you mean "lost icons"?
Getting the "unknown" icon? That would probably happen because the classClass will usually be closer to the binary (which is "wine" in your case! the .exe is just loaded binary data)

This is however sth. the taskbar dev needs to care about (ie. try className first and ClassClass as fallback, only group by ClassName, though) - no idea what you can configure as user but that's likely insufficient.
luttztfz
Registered Member
Posts
6
Karma
0
OS

Sun Mar 24, 2013 9:03 am
I’m not using wine too much at the moment, and I always use a .desktop link that invokes wine and the actual .exe as (one of) its parameter(s).

Question: what happens if binfmt is used? This would allow to start the .exe directly – and the binfmt kernel extension will then load wine. The same should be true for other interpreter formats, such as .jar for Java, .exe for Mono (a conflict with wine, see https://bugzilla.redhat.com/show_bug.cgi?id=517873).
luebking
Karma
0

Re: Icon Launchers for Wine Apps?

Sun Mar 24, 2013 9:12 am
nothing, wine s still the running process and most importantly will very much likely set "wine" as ClassClass.
luttztfz
Registered Member
Posts
6
Karma
0
OS

Re: Icon Launchers for Wine Apps?

Sun Mar 24, 2013 11:21 am
I’ve filed a bug for this:
https://bugs.kde.org/show_bug.cgi?id=317264


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]