forked from Antergos/Cnchi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run
executable file
·22 lines (18 loc) · 844 Bytes
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# WARNING:
# This script is a helper that the developers use to call Cnchi (testing purposes only)
# Please, do not use if your intention is to do a "normal" installation
_CNCHI_DIR=`pwd`
if ! [[ -f /usr/share/cnchi ]]; then
sudo rm /usr/share/cnchi
echo Creating soft link /usr/share/cnchi to ${_CNCHI_DIR}
sudo ln -sf ${_CNCHI_DIR} /usr/share/cnchi
fi
_PYTHON="/usr/bin/python"
#_PYTHON="/opt/pypy3/bin/pypy3"
_PYTHON_OPTIONS="-Wall -X track-resources"
#_XML="/usr/share/cnchi/data/packages.xml"
_CNCHI_OPTIONS="-d -v"
#pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $_PYTHON $_PYTHON_OPTIONS $CNCHI_DIR/src/cnchi.py $_CNCHI_OPTIONS -p $_XML ${@} 2>&1
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY GTK_DEBUG=interactive $_PYTHON $_PYTHON_OPTIONS $_CNCHI_DIR/src/cnchi.py $_CNCHI_OPTIONS ${@} 2>&1
exit 0