summarylogtreecommitdiffstats
path: root/phoenix-emu-project
diff options
context:
space:
mode:
authorViachaslau Khalikin2017-06-17 14:10:13 +0000
committerViachaslau Khalikin2017-06-17 14:10:13 +0000
commit402b1016257ebc673c33e2c97ea9c91645b24587 (patch)
tree890fff3e1f781fc7c3c33db8178cba280698a3f1 /phoenix-emu-project
parent6f2dd0a6631406302931baa9f0cdf63c270a4670 (diff)
downloadaur-402b1016257ebc673c33e2c97ea9c91645b24587.tar.gz
update run script
Diffstat (limited to 'phoenix-emu-project')
-rw-r--r--phoenix-emu-project20
1 files changed, 12 insertions, 8 deletions
diff --git a/phoenix-emu-project b/phoenix-emu-project
index 16e0502db272..1dc8af3cbc17 100644
--- a/phoenix-emu-project
+++ b/phoenix-emu-project
@@ -1,19 +1,23 @@
#!/bin/sh
-confdir=$HOME/.config/PhoenixEmuProject
+if [ ! -z $XDG_CONFIG_HOME ]; then
+ confdir=$XDG_CONFIG_HOME/PhoenixEmuProject
+else
+ confdir=$HOME/.config/PhoenixEmuProject
+fi
mkdir -p $confdir
cd $confdir
-if [ ! -s $confdir/scalers ] ; then
- cp -r /opt/phoenix-emu-project/scales $confdir/scales
+if [ ! -d $confdir/scalers ]; then
+ cp -fr /opt/phoenix-emu-project/scales/ $confdir/scales/
fi
-if [ ! -s $confdir/shaders ] ; then
- cp -r /opt/phoenix-emu-project/shaders $confdir/shaders
+if [ ! -d $confdir/shaders ]; then
+ cp -fr /opt/phoenix-emu-project/shaders/ $confdir/shaders/
fi
-if [ ! -s $confdir/skin ] ; then
- cp -r /opt/phoenix-emu-project/skin $confdir/skin
+if [ ! -d $confdir/skin ]; then
+ cp -fr /opt/phoenix-emu-project/skin/ $confdir/skin/
fi
if [[ $LANG != "ru_RU"* ]]; then
- cp /opt/phoenix-emu-project/translation.xml.eng $confdir/translation.xml
+ cp -f /opt/phoenix-emu-project/translation.xml.eng $confdir/translation.xml
fi
/opt/phoenix-emu-project/PhoenixEmuProject