Browse Source

Fix "ps" usage, closes #57

tags/v0.9.0
falkTX 12 years ago
parent
commit
23eb1c9c34
6 changed files with 6 additions and 6 deletions
  1. +1
    -1
      data/cadence
  2. +1
    -1
      data/cadence-pulse2jack
  3. +1
    -1
      data/catia
  4. +1
    -1
      data/claudia
  5. +1
    -1
      data/claudia-launcher
  6. +1
    -1
      src/shared_cadence.py

+ 1
- 1
data/cadence View File

@@ -2,7 +2,7 @@


# Check if already running # 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 if [ x"$PROCS" != x"" ]; then




+ 1
- 1
data/cadence-pulse2jack View File

@@ -80,7 +80,7 @@ esac


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


+ 1
- 1
data/catia View File

@@ -2,7 +2,7 @@


# Check if already running # 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 if [ x"$PROCS" != x"" ]; then




+ 1
- 1
data/claudia View File

@@ -2,7 +2,7 @@


# Check if already running # 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 if [ x"$PROCS" != x"" ]; then




+ 1
- 1
data/claudia-launcher View File

@@ -2,7 +2,7 @@


# Check if already running # 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 if [ x"$PROCS" != x"" ]; then




+ 1
- 1
src/shared_cadence.py View File

@@ -76,7 +76,7 @@ def getProcList():


if HAIKU or LINUX or MACOS: if HAIKU or LINUX or MACOS:
process = QProcess() process = QProcess()
process.start("ps", ["-e"])
process.start("ps", ["-u", str(os.getuid())])
process.waitForFinished() process.waitForFinished()


processDump = process.readAllStandardOutput().split("\n") processDump = process.readAllStandardOutput().split("\n")


Loading…
Cancel
Save