1
0
Fork 0
forked from lthn/blockchain

linux: Zano.sh improved to work from any location

This commit is contained in:
sowle 2020-09-16 16:33:53 +03:00
parent 07830d7988
commit 37091efbe4
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -1,19 +1,19 @@
#!/bin/sh
#!/bin/bash
script_dir=$( dirname "$(readlink -f "$0")" )
set LD_LIBRARY_PATH=${0%}
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
export QT_PLUGIN_PATH=$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$script_dir/lib
export QT_PLUGIN_PATH=$script_dir/lib
echo $LD_LIBRARY_PATH
echo $QT_PLUGIN_PATH
out_file_name=~/.local/share/applications/Zano.desktop
script_dir=$( cd $(dirname $0) ; pwd -P )
call_app()
{
pushd $script_dir
./Zano
popd
exit
}
@ -39,7 +39,3 @@ create_desktop_icon()
create_desktop_icon $out_file_name
call_app