[orca] Try and only kill real Orcas with --replace
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Try and only kill real Orcas with --replace
- Date: Wed, 14 Oct 2020 14:39:40 +0000 (UTC)
commit 31753466d4c40a0e48bcadc4cc442fac2446a993
Author: Colomban Wendling <cwendling hypra fr>
Date: Wed Oct 14 14:54:15 2020 +0200
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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]