1 diff --git a/src/orca/debug.py b/src/orca/debug.py
2 index eb939a236..4e4db2e84 100644
3 --- a/src/orca/debug.py
4 +++ b/src/orca/debug.py
5 @@ -522,7 +522,7 @@ def traceit(frame, event, arg):
8 def getOpenFDCount(pid):
9 - procs = subprocess.check_output([ 'lsof', '-w', '-Ff', '-p', str(pid)])
10 + procs = subprocess.check_output([ '@lsof@', '-w', '-Ff', '-p', str(pid)])
11 procs = procs.decode('UTF-8').split('\n')
12 files = list(filter(lambda s: s and s[0] == 'f' and s[1:].isdigit(), procs))
14 @@ -540,7 +540,7 @@ def getCmdline(pid):
18 - openFile = subprocess.Popen(f'pgrep {procName}',
19 + openFile = subprocess.Popen(f'@pgrep@ {procName}',
21 stdout=subprocess.PIPE).stdout
22 pids = openFile.read()
23 diff --git a/src/orca/orca_bin.py.in b/src/orca/orca_bin.py.in
24 index c6f99de14..2370204f3 100755
25 --- a/src/orca/orca_bin.py.in
26 +++ b/src/orca/orca_bin.py.in
27 @@ -62,7 +62,7 @@ class ListApps(argparse.Action):
31 - cmdline = subprocess.getoutput('cat /proc/%s/cmdline' % pid)
32 + cmdline = subprocess.getoutput('@cat@ /proc/%s/cmdline' % pid)
34 cmdline = '(exception encountered)'
36 @@ -195,7 +195,7 @@ def inGraphicalDesktop():
38 """Returns the pid of any other instances of Orca owned by this user."""
40 - openFile = subprocess.Popen('pgrep -u %s -x orca' % os.getuid(),
41 + openFile = subprocess.Popen('@pgrep@ -u %s -x orca' % os.getuid(),
43 stdout=subprocess.PIPE).stdout
44 pids = openFile.read()
45 diff --git a/src/orca/orca_modifier_manager.py b/src/orca/orca_modifier_manager.py
46 index c45cd4a5b..3f2ec59f0 100644
47 --- a/src/orca/orca_modifier_manager.py
48 +++ b/src/orca/orca_modifier_manager.py
49 @@ -115,7 +115,7 @@ class OrcaModifierManager:
50 debug.printMessage(debug.LEVEL_INFO, msg, True)
52 self.unset_orca_modifiers(reason)
53 - self._original_xmodmap = subprocess.check_output(['xkbcomp', os.environ['DISPLAY'], '-'])
54 + self._original_xmodmap = subprocess.check_output(['@xkbcomp@', os.environ['DISPLAY'], '-'])
55 self._create_orca_xmodmap()
57 def update_key_map(self, keyboard_event):
58 @@ -162,7 +162,7 @@ class OrcaModifierManager:
61 self._caps_lock_cleared = False
62 - p = subprocess.Popen(['xkbcomp', '-w0', '-', os.environ['DISPLAY']],
63 + p = subprocess.Popen(['@xkbcomp@', '-w0', '-', os.environ['DISPLAY']],
64 stdin=subprocess.PIPE, stdout=None, stderr=None)
65 p.communicate(self._original_xmodmap)
67 @@ -223,7 +223,7 @@ class OrcaModifierManager:
69 msg = "ORCA MODIFIER MANAGER: Updating xmodmap"
70 debug.printMessage(debug.LEVEL_INFO, msg, True)
71 - p = subprocess.Popen(['xkbcomp', '-w0', '-', os.environ['DISPLAY']],
72 + p = subprocess.Popen(['@xkbcomp@', '-w0', '-', os.environ['DISPLAY']],
73 stdin=subprocess.PIPE, stdout=None, stderr=None)
74 p.communicate(bytes('\n'.join(lines), 'UTF-8'))