Creating a desktop shortcut under Ubuntu for a Windows app runnning under Wine

Learning that lasts. Online courses from $14.99

From a CD, I installed Microsoft Office 2007 under Wine, so that my wife could edit her Microsoft Publisher files on an Ubuntu Linux system. I also installed Microsoft Excel and Microsoft Word. All three seemed to be working OK when I checked them after the installation completed.

alice@Wonderland:~$ wine /media/alice/OFFICE12/setup.exe
0024:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0024:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
0124:err:system:lock_display_devices Failed to read display config.
0124:err:system:display_mode_changed Failed to update display cache after mode change.
01a0:err:mscoree:LoadLibraryShim error reading registry key for installroot
01a0:err:mscoree:LoadLibraryShim error reading registry key for installroot
01a0:err:mscoree:LoadLibraryShim error reading registry key for installroot
01a0:err:mscoree:LoadLibraryShim error reading registry key for installroot
01a0:err:mscoree:LoadLibraryShim error reading registry key for installroot
<text snipped>
01a0:err:mscoree:LoadLibraryShim error reading registry key for installroot
01a0:err:mscoree:LoadLibraryShim error reading registry key for installroot
01a0:err:mscoree:LoadLibraryShim error reading registry key for installroot
alice@Wonderland:~$

I was able to open the programs from the File Explorer by issuing the command wine explorer from a shell prompt in a Terminal window and then navigating to the directory, C:\Program Files (x86)\Microsoft Office\Office12, where the applications were located. I could also start Publisher by issuing the command below in a Terminal window:

wine "/home/alice@Wonderland/.wine/drive_c/Program Files (x86)/Microsoft Office/Office12/MSPUB.EXE"

To make it easer for my wife to open Publisher, though, I created a shortcut on her Ubuntu desktop. To create a shortcut you can take the following steps:

Open a Terminal window and create a new .desktop file on your desktop. You can use the nano editor or another text editor to create the file. E.g.:
nano ~/Desktop/AppName.desktop

You then need to have lines like the following ones in the file:

[Desktop Entry]
Name=Name of Your Application
Exec=wine "/home/username/.wine/drive_c/Program Files/AppName/app.exe"
Type=Application
Icon=wine
Terminal=false
StartupNotify=true

You need to use the absolute path the the .exe file for the program and, if the directory path contains a space, you must enclose the path within quotes. Also, you need to replace username with your username on the system. For Publisher, I could use the following lines:

[Desktop Entry]
Name=Publisher
Exec=wine "/home/alice@Wonderland/.wine/drive_c/Program Files (x86)/Microsoft Office/Office12/MSPUB.EXE"
Type=Application
Icon=wine
Terminal=false
StartupNotify=true

If you use the nano text editor, you can hit Ctrl+X, the Y, then Enter to save the file. You then need to make the shortcut executable, which you can do by right-clicking on the file on the desktop, selecting Properties, and then makng sure "Executable as Program" is on. Or you can use the chmod command to make the file excutable by a command like chmod +x ~/Desktop/AppName.desktop , e.g.:

alice@Wonderland:~$ chmod +x ~/Desktop/Publisher.desktop
alice@Wonderland:~$

You then need to permit launching of the application from the shortcut by right-clicking on it and selecting Allow Launching.

Allow Launching