Commit 31753466 authored by Colomban Wendling's avatar Colomban Wendling

Try and only kill real Orcas with --replace

Do not recognize as Orcas all process that has the "orca" substring in
their program name, but only the ones that have "orca" *as* their
program name -- e.g. don't do approximate matches.

This avoids killing random programs that just happen to have "orca" as
a substring somewhere in their program name when using `--replace`.
parent e26f4ff3
......@@ -192,7 +192,7 @@ def inGraphicalDesktop():
def otherOrcas():
"""Returns the pid of any other instances of Orca owned by this user."""
openFile = subprocess.Popen('pgrep -u %s orca' % os.getuid(),
openFile = subprocess.Popen('pgrep -u %s -x orca' % os.getuid(),
pids =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment