I am trying to create a launcher with this command input:
gksu sh -c "~/evelauncher/evelauncher.sh"
but it fails. When I enter:
sudo ~/evelauncher/evelauncher.sh
in terminal it works perfectly (with text output) and starts the program. Can someone explain why the launcher doesnt work? The launcher has read-write access as my user, and the "execute files as programs" checkbox is checked.
Try this command instead (replacing
YOURUSERNAME
with the appropriate value):First, it replaces the
~
with your actual absolute home directory path.Second, you don't need to pass the script path as command string to
sh
, it can directly interpret script files.Tilde (
~
) doesn't expand inside quotes. You could remove the quotes:Or use
$HOME
instead: