From 31753466d4c40a0e48bcadc4cc442fac2446a993 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 14 Oct 2020 14:54:15 +0200 Subject: [PATCH] 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`. --- src/orca/orca_bin.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orca/orca_bin.py.in b/src/orca/orca_bin.py.in index 6ba3b37e5..aa9fb82ef 100644 --- a/src/orca/orca_bin.py.in +++ b/src/orca/orca_bin.py.in @@ -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(), shell=True, stdout=subprocess.PIPE).stdout pids = openFile.read() -- GitLab