Browse Source

cleanup start init script's

micha 2 years ago
parent
commit
93987f610c
2 changed files with 7 additions and 4 deletions
  1. 6 3
      _LibreLightDesk.py
  2. 1 1
      init/50-TK-GUI.sh

+ 6 - 3
_LibreLightDesk.py

@@ -23,10 +23,13 @@ rnd_id = str(random.randint(1000,9000))
 rnd_id += " Beta 22.10 "
 import subprocess
 import string
+_gcmd=['git', 'rev-parse', '--short', 'HEAD']
 try:
-    rnd_id += subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('ascii').strip()
-except:
-    rnd_id += " no git"
+    r = subprocess.check_output(_gcmd)
+    rnd_id += r.decode('ascii').strip()
+except Exception as e:
+    rnd_id += " no git" 
+    #rnd_id += " ".join(_gcmd) +str(e)
 
 try:
     xtitle = __file__

+ 1 - 1
init/50-TK-GUI.sh

@@ -7,7 +7,7 @@ CMD="python3 $path/Xdesk/LibreLightDesk.py "
 
 echo "- STARTING $SES"
 
-cd "$path"
+cd "$path/Xdesk/"
 screen -XS "$SES" quit | echo ""
 CMD="screen -d -m -S $SES $CMD"
 #echo "$CMD"