Allow 'wine foo.exe' to work when foo.exe is a symlink
dank at kegel.com
Sun Jun 18 21:45:58 CDT 2006
Currently, when I install a Windows app on Ubuntu,
the apps don't show up in the system menus.
I'm doing a demo of Wine for a users' group in a few
days, so I thought "How would the average user deal with this?"
Probably they'd navigate down to the directory
where the app was installed, make a shortcut to the app,
and drag the shortcut to the desktop. So I tried
that -- and it didn't work. But it does work if I apply
the following trivial patch, which just uses readlink() to find the
target of the shortcut. I didn't really analyze the
code, just slammed the readlink in there, and was happy to
see it worked.
kernel/process.c: if argv is a symlink, use its target
process.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 967 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060618/6922e76f/readlink.patch
More information about the wine-patches