I want to create a quick launch icon for MATLAB, but it won't start if the working directory is not the same as the directory where the executable is. Can I specify the working directory in the 'Custom Application Launcher'?
I want to create a quick launch icon for MATLAB, but it won't start if the working directory is not the same as the directory where the executable is. Can I specify the working directory in the 'Custom Application Launcher'?
You can set the working directory natively, but for some reason it's not supported in the user interface. The underlying .desktop file itself supports a
Path
key for "the working directory to run the program in" (see the spec) as long as your launcher is an "Application" type.So just open the .desktop file in a text editor (if you're having trouble finding it, you can create the launcher on your desktop and find it in
~/Desktop
, then move it later), and add a line at the end that saysPath=YOUR_PATH
.Change the Command to this (substituting the correct paths of course):