http://bugs.winehq.org/show_bug.cgi?id=5631
Summary: wine can't handle .lnk files on the commandline Product: Wine Version: CVS Platform: Other OS/Version: other Status: NEW Keywords: download Severity: enhancement Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Many installers create .lnk files on the desktop. It would be nice if doubleclicking on these worked. That would be easy to arrange if $ wine MAHJONGG.lnk worked. At the moment, it fails with wine: could not load L"Z:\home\dank\Desktop\MAHJONGG.lnk": Bad EXE format for
A helper script, ~/bin/winelnk, can work around this:
FILE=`winedump lnk $1 | grep LocalPath | sed 's/.*(.//;s/.).*//'` wine "$FILE"
but this is a kludge, as it doesn't handle all kinds of shortcuts (cf http://wiki.winehq.org/ShellLink, http://wiki.winehq.org/MsiAdvertisedShortcuts). Better to make Wine handle these without a helper script.
(One app that creates a .lnk when installed is Daniel Valot's mahjongg, http://dvalot.free.fr/games.htm. But many do, that's not a special app.)