Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

You may or may not know that Wine has a "desktop mode" where it renders a virtual desktop in a window and renders all its windows within that desktop. You can access it through:

wine explorer /desktop=arbname,1920x1200 "C:\...\...\application.exe"

It's really helpful for "fullscreen" gaming on multi-monitor setups. Anyway, I've been using desktop mode for my main Wine prefix for years and some applications have (with no interaction from me) installed icons on the virtual desktop:

enter image description here

There's something I am used to launching from a terminal after starting my Wine desktop but it occurs to me that I might be able to create a launcher for it within the Wine desktop - it's just that I have no idea where to start. Where are these launchers stored? How do I create a new one?

Pre-post-edit: I've found where they live: ~/.wine/drive_c/users/Public/Desktop/ but all the .lnk files are binary horribleness. Great idea Microsoft, thanks for that. Any ideas how I can create a new one?

Note: I am not asking how to create a shortcut to a Wine app on my Ubuntu desktop.

share|improve this question
2  
good question - does any of the suggestions here work under wine? superuser.com/questions/392061/how-to-make-a-shortcut-from-cmd –  fossfreedom Mar 13 at 10:28

1 Answer 1

With an amount of pain and suffering, fossfreedom's suggestion paid off. I didn't try the VBScript method, mainly because I didn't know how much of that is actually implemented in Wine. There was also mention of add-on packs that don't seem to be present in Wine.

So that left me with the Shortcut.exe method from alfasin.

  1. Download Shortcut.exe from its creator
  2. Unzip it and make it available somewhere under your WINEPREFIX (I used ~/.wine/drive_c/)
  3. Run wineconsole to get a cmd.exe-like environment
  4. From there, cd to whereever your shortcut.exe live and use it. Here's what I ran:

    Shortcut /a:c /f:"%ALLUSERSPROFILE%\Desktop\Borderlands2.lnk" /t:"C:\Program Files\Steam\steamapps\common\Borderlands 2\Binaries\Win32\Borderlands2.exe"
    

If nothing else it has provided me with a renewed (and thoroughly deserved) hatred towards Windows.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.