[Bug 5631] New: wine can't handle .lnk files on the commandline
Wine Bugs
wine-bugs at winehq.org
Sat Jul 8 23:09:37 CDT 2006
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 at winehq.org
ReportedBy: dank at 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.)
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list