Skip to content

Commit abc998c

Browse files
committed
run.sh: Add checks for ioctl_opt and evdev, also add a commented out scc-daemon debug line
1 parent 42ba730 commit abc998c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

run.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ function testDeps() {
6666
echo -e "${Red}python3-gi-cairo not found, install it. ${Yellow}The package may be named python3-gobject or python-gobject on your distribution!${NoColor}"
6767
exit 1
6868
fi
69+
if ! python -c "import importlib.util; exit(0 if importlib.util.find_spec('ioctl_opt') is not None else 1)"; then
70+
echo -e "${Red}python3-ioctl-opt not found, install it. ${Yellow}The package may be named or python-ioctl-opt on your distribution, ioctl-opt on PyPi!${NoColor}"
71+
exit 1
72+
fi
73+
if ! python -c "import importlib.util; exit(0 if importlib.util.find_spec('evdev') is not None else 1)"; then
74+
echo -e "${Red}python3-evdev not found, install it. ${Yellow}The package may be named or python-evdev on your distribution!${NoColor}"
75+
exit 1
76+
fi
6977
# https://stackoverflow.com/a/48006925/8962143
7078
#import gi
7179
#gi.require_version("Gtk", "3.0")
@@ -109,4 +117,5 @@ export PYTHONPATH=".":"${PYTHONPATH-}"
109117
export SCC_SHARED="$(pwd)"
110118

111119
# Execute
120+
#python3 'scripts/scc-daemon' debug &
112121
python3 'scripts/sc-controller' $@

0 commit comments

Comments
 (0)