May 15, 2011

How To Add Windows (Wine) Apps To Unity Launcher

Because Unity Launcher and Dash only show application that are in /usr/share/applications/ you can't add or view apps that are installed via Wine.




To add Wine apps to Launcher you need to create new .desktop file in /usr/share/applications/
The easiest way to do this is with Unity Launcher Editor.

Unity Launcher Editor still don't have PPA so you need to get it via BRZ

First you need to install brz
sudo apt-get install bzr
then
bzr branch lp:unity-launcher-editor
cd unity-launcher-editor
./unity-launcher-editor

if last command don't start Unity Launcher Editor then go to /home/unity-launcher-editor/unitylaunchereditor/ and open main.py


Now in Unity Launcher Editor click Add button and write App name,


In command field write command that will open Wine application,
wine PATH_TO_.EXE
for example:
wine /home/ivan/Downloads/WAR3_1_26a_MX.exe
Click on Icon and select icon for your app (64x64 .png)


Final step is to make new launcher item executable.
Go to:
/home/.local/share/application
Search for your application and rigth click > properties > Permissions
and check Allow executing file as program


If app is not in Launcher you need to logout

For Unity 2D you might need to add manually app to Launcher
You can do this in two ways:

1. Go to /home/.local/share/application and start your app
   In Launcher right click on app and check Keep in Launcher


2. Start gconf-editor from terminal, navigate to Desktop > Unity 2D > Launcher
    duble-click on favorites > Add 
    in New list value write : appname + .desktop


0 comments:

Post a Comment