Public bug reported:

When you create a launcher it would be handy to have a checkbox to change the 
current dir to the directory containing the executable.
This would help novices and give some relief to the support channels (I spent a 
fair amount of time helping people to create .sh files to cd 
/home/user/myprogram; ./program).

The target is little programs that come in tarballs like Phun or
TeeWorlds, where you have to change to the application dir before
launching them.

My quick and dirty solution for that was creating a script in /usr/local/bin 
(es: cwdlauncher) containing:
#!/bin/bash
cd  `dirname $1`
./`basename $1 $2 $3 $4`

and writing "cwdlaunch /home/user/phun/phun" in the "command" field of
the launcher creation wizard.

An integrated solution would be handy, and wouldn't require no more than
an additional checkbox on the launcher wizard.

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
Creating a launcher shuold give an option to perform "cd" before executing
https://bugs.launchpad.net/bugs/229069
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to