Because we live in a Windows world and many of us are less than titillated by that fact we find ourselves running Ubuntu, trying to run Windows programs. A number of programs which we launch from the CLI require that the terminal's command prompt be the same as the target directory address. This can cause a bit of frustration when we want to create a quick launcher and find that the path line in the .desktop file we are told to create is about as useful as tits on a bull. So what I want to share is how to overcome this problem in one line in your quick launcher without having to do anything else.
In this example I have Mono installed on my PC which you can see as .Net for linux. It allows me to run .Net programs natively on Ubuntu. The typical usage command is: mono package.exe, where package.exe is usually inside a portable Windows program. I have downloaded my portable Windows program, called SubtitleEdit, which uses .Net, into a folder called Windows Portable Programs. To run the program from the terminal I need to navigate to the folder where it resides and enter mono SubtitleEdit.exe.
me@ubuntu:~/Windows Portable Programs/SubtitleEdit$ mono SubtitleEdit.exe
A far easier way to launch this program would be to just set up a desktop launcher as follow:
Just copy the above, only change the Exec= line and save to ~/Desktop. I hope this saves you the many hours it took me to discover this quite simple and elegant solution to quick launch a program.
In this example I have Mono installed on my PC which you can see as .Net for linux. It allows me to run .Net programs natively on Ubuntu. The typical usage command is: mono package.exe, where package.exe is usually inside a portable Windows program. I have downloaded my portable Windows program, called SubtitleEdit, which uses .Net, into a folder called Windows Portable Programs. To run the program from the terminal I need to navigate to the folder where it resides and enter mono SubtitleEdit.exe.
me@ubuntu:~/Windows Portable Programs/SubtitleEdit$ mono SubtitleEdit.exe
A far easier way to launch this program would be to just set up a desktop launcher as follow:
Code:
[Desktop Entry] Exec=sh -c 'cd /home/me/"Windows Portable Programs"/SubtitleEdit; mono SubtitleEdit.exe' Icon=/home/me/Pictures/icons/SE.bmp Name=Subtitle Edit StartupNotify=true StartupWMClass=subtitleedit.exe Terminal=false Type=Application X-KDE-SubstituteUID=false
Comment