More actions
Torg Navatin (talk | contribs) m typo |
|||
| Line 107: | Line 107: | ||
:{{code|/bin/sh: {{Color|orange|warning}}: shell level (1000) too high, resetting to 1}} | :{{code|/bin/sh: {{Color|orange|warning}}: shell level (1000) too high, resetting to 1}} | ||
This, and other errors, are likely due to the fact that | This, and other errors, are likely due to the fact that the 'dirname' and 'pwd' commands will return the location of the soft link, not of the shell script itself. Hence, we need to use readlink to follow every symlink in the path. Make the following changes to /path/to/evelauncher/evelauncher.sh: | ||
:{{code|#!/bin/sh <br>{{Color|green|appname<nowiki>=</nowiki>"evelauncher"<br>}}<br>{{Color|green|dirname<nowiki>=</nowiki>$(dirname "$(readlink -f "$BASH_SOURCE")")}}<br>tmp<nowiki>=</nowiki>"${dirname#?}"<br><br>if [ "${dirname%$tmp}" !<nowiki>=</nowiki> "/" ]; then<br>dirname<nowiki>=</nowiki>"$PWD/$dirname"<br>fi<br><br>LD_LIBRARY_PATH<nowiki>=</nowiki>"$dirname:$LD_LIBRARY_PATH"<br>export LD_LIBRARY_PATH<br>export QTDIR<nowiki>=</nowiki>$dirname<br>export QT_PLUGIN_PATH<nowiki>=</nowiki>$dirname/plugins<br>"$dirname/$appname" "$@"}} | |||
:{{code|#!/bin/sh <br>{{Color|green|appname<nowiki>=</nowiki>"evelauncher"<br>}}<br>{{Color|green|dirname<nowiki>=</nowiki>" | |||
:'''Note:''' The first change is necessary only if you choose to give your soft link a different name. | :'''Note:''' The first change is necessary only if you choose to give your soft link a different name. | ||
[[Category:Guides]] | [[Category:Guides]] | ||