asb / spindle

http://asbradbury.org/projects/spindle/
Other
185 stars 43 forks source link

Raspberry Pi Python Games Desktop has hardcoded user link #128

Closed lillevig closed 10 years ago

lillevig commented 11 years ago

The file Destop/python-games.desktop has a link that is hard coded to point to the Pi user folder structure. If a new user is created and the child folders copied over from the Pi user, then that link needs to be edited. A portable solution would be to replace that line with one that gets the current user and inserts it into the file path structure. Unfortunaely, ".desktop" files do not allow the parsing of environment variables. Fortunately, a shell command can overcome that shortcoming. A proposed and tested solution is below:

Exec=sh -c $HOME/python_games/launcher.sh