touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #20182
[Bug 1103833] Re: Wine's icon and description appears for all Windows applications
So according to the lastet comments adding a StartupWMClass
corresponding to the name of the application's executable to each Wine
.desktop file would be a temporary workaround for this problem, until
it's fixed in Wine? Let's try it:
find "$HOME/.local/share/applications/wine/Programs" -name '*.desktop'
-exec perl -pi -e 'if (m/^Exec=.+ \/Unix (.+\.lnk)/) { ($l = $1) =~
s/\\\\ / /g; $r = qx[env WINEDEBUG=-all wine shortcut /f:"$l" /a:q]; if
($r =~ m/\nTargetPath=(?:.+\\)?([^\\\n]+)/) { print
"StartupWMClass=$1\n"; } }' '{}' \;
And hey, it works! Mostly, that is, for me. A few exceptions turned out
to be due to to EITHER differences in capitalization between what's in
the .lnk file and the actual exectutable on disk OR some internal
shenanigans by program loaders/cracks.
Try this workarond at your own risk. Be sure to backup
~/.local/share/applications/wine/Programs beforehand. You may have to
run "xdg-desktop-menu forceupdate" to see any changes. YMMV. To revert
the changes, i.e. to remove all StartupWMClass lines from all Wine
.desktop files:
find "$HOME/.local/share/applications/wine/Programs" -name '*.desktop'
-exec perl -pi -e 's/StartupWMClass=.+\n//' '{}' \;
This workaround (or a permanent fix) also seems to fix
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/704187. And maybe
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/998591.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity in Ubuntu.
https://bugs.launchpad.net/bugs/1103833
Title:
Wine's icon and description appears for all Windows applications
Status in One Hundred Papercuts:
Triaged
Status in Unity:
Confirmed
Status in Wine:
Unknown
Status in “unity” package in Ubuntu:
Triaged
Status in “wine” package in Ubuntu:
Triaged
Bug description:
If I start an application using Crossover (or Wine), the application will always be the Wine Logo instead of the application logo. This is the same independent of the application being run or using Wine instead of Crossover.
That makes sense if the application has no logo, but it gets confusing running multiple Microsoft Office programs - and all of them have the same logo.
The hint text for the icon is also "Wine Windows Program Loader" instead of "Document 1 - Microsoft Word" as it should be.
Unity does not seem to allow Wine/Crossover to use application icons and title text.
I have confirmed that this issue does NOT occur in Gnome Classic, and
is only a Unity flaw.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: unity 6.12.0-0ubuntu0.2
ProcVersionSignature: Ubuntu 3.5.0-22.34-generic 3.5.7.2
Uname: Linux 3.5.0-22-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
Date: Wed Jan 23 23:37:43 2013
InstallationDate: Installed on 2012-10-21 (94 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1103833/+subscriptions