diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-05-30 21:44:35 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-05-30 21:44:35 +0200 |
| commit | 5cd05a51d42e85ca5cc104ce4c3981cbf329e16d (patch) | |
| tree | b25c8ddeea8f3c9b7f01d576ab32f9e4dcc38602 | |
| parent | c2c5f0c13ded011d976b0a5d1ed46e2be630727c (diff) | |
| parent | a0461634770a29dbf9e05074e4423dd408abfd8f (diff) | |
| download | monzero-gui-5cd05a51d42e85ca5cc104ce4c3981cbf329e16d.tar.gz monzero-gui-5cd05a51d42e85ca5cc104ce4c3981cbf329e16d.tar.xz monzero-gui-5cd05a51d42e85ca5cc104ce4c3981cbf329e16d.zip | |
Merge pull request #723
a046163 made changes so that start-gui.sh script can be called from anywhere and also from or with symbolic links (8go)
| -rwxr-xr-x | linuxdeploy_helper.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linuxdeploy_helper.sh b/linuxdeploy_helper.sh index d65676ce..cf9a6417 100755 --- a/linuxdeploy_helper.sh +++ b/linuxdeploy_helper.sh @@ -46,7 +46,9 @@ cat > $TARGET/start-gui.sh <<EOL export LD_LIBRARY_PATH=\`pwd\`/libs export QT_PLUGIN_PATH=\`pwd\`/plugins export QML2_IMPORT_PATH=\`pwd\`/qml -./$GUI_EXEC +# make it so that it can be called from anywhere and also through soft links +SCRIPT_DIR="\$(dirname "\$(test -L "\${BASH_SOURCE[0]}" && readlink "\${BASH_SOURCE[0]}" || echo "\${BASH_SOURCE[0]}")")" +"\$SCRIPT_DIR"/$GUI_EXEC EOL -chmod +x $TARGET/start-gui.sh
\ No newline at end of file +chmod +x $TARGET/start-gui.sh |
