Fix "ps" usage, closes #57

This commit is contained in:
falkTX 2013-07-05 22:34:59 +01:00
parent d347476b99
commit 23eb1c9c34
6 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
# Check if already running
PROCS=`ps -ea -f | grep /share/cadence/src/cadence.py | grep python`
PROCS=`ps -f -u $USER | grep /share/cadence/src/cadence.py | grep python`
if [ x"$PROCS" != x"" ]; then

View File

@ -80,7 +80,7 @@ esac
IsPulseAudioRunning()
{
PROCESS=`ps -e | grep pulseaudio`
PROCESS=`ps -u $USER | grep pulseaudio`
if [ "$PROCESS" == "" ]; then
false
else

View File

@ -2,7 +2,7 @@
# Check if already running
PROCS=`ps -ea -f | grep /share/cadence/src/catia.py | grep python`
PROCS=`ps -f -u $USER | grep /share/cadence/src/catia.py | grep python`
if [ x"$PROCS" != x"" ]; then

View File

@ -2,7 +2,7 @@
# Check if already running
PROCS=`ps -ea -f | grep /share/cadence/src/claudia.py | grep python`
PROCS=`ps -f -u $USER | grep /share/cadence/src/claudia.py | grep python`
if [ x"$PROCS" != x"" ]; then

View File

@ -2,7 +2,7 @@
# Check if already running
PROCS=`ps -ea -f | grep /share/cadence/src/claudia-launcher.py | grep python`
PROCS=`ps -f -u $USER | grep /share/cadence/src/claudia-launcher.py | grep python`
if [ x"$PROCS" != x"" ]; then

View File

@ -76,7 +76,7 @@ def getProcList():
if HAIKU or LINUX or MACOS:
process = QProcess()
process.start("ps", ["-e"])
process.start("ps", ["-u", str(os.getuid())])
process.waitForFinished()
processDump = process.readAllStandardOutput().split("\n")