Use setproctitle python module to set process name

This commit is contained in:
Nedko Arnaudov 2024-05-20 21:47:01 +03:00
parent 76b3a78892
commit c3548e49af
3 changed files with 9 additions and 2 deletions

View File

@ -5,6 +5,7 @@
* Remove C++ code, only PyQt5 code now
* claudia_launcher: fix for empty output of "dpkg --get-selections"
* show "Stopped" in (dsp) status bar when studio is stopped
* Use setproctitle python module to set process name
== ladi-cadence-1.9.4: January 11, 55 (2024)

View File

@ -1,8 +1,11 @@
#!/bin/bash
#set -x
#set -e
# Check if already running
PROCS=`ps -f -u $USER | grep /share/ladi-claudia/src/claudia.py | grep python`
PROCS=`ps -f -u $USER | grep ladi-claudia-pyqt5 | grep -v grep`
if [ x"$PROCS" != x"" ]; then
@ -16,7 +19,7 @@ if [ x"$PROCS" != x"" ]; then
if [ x"$PID" != x"" ]; then
# Tell user about this
echo "Claudia already started, showing GUI now..."
echo "ladi-claudia already started, showing GUI now..."
# Send SIGUSR2, shows the GUI
kill -USR2 "$PID"

View File

@ -20,6 +20,9 @@
# ------------------------------------------------------------------------------------------------------------
# Imports (Global)
from setproctitle import setproctitle
setproctitle("ladi-claudia-pyqt5")
from time import ctime
if True: