summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/eip/linuxvpnlauncher.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-06-10 09:29:16 -0500
committerKali Kaneko <kali@leap.se>2014-06-10 09:29:16 -0500
commit049f8bce340f10e4d61e393a53ba72436b9c3e1c (patch)
tree10f63eac59cf7621de71777ff4644901b020cf77 /src/leap/bitmask/services/eip/linuxvpnlauncher.py
parenta1b8dec4352caec64f250ffb9738cd605ccab0ad (diff)
parentc621fa7322b4f8151eb37b27f8aeae563cf6bd63 (diff)
Merge tag '0.5.2' into deb-0.5.2
Tag leap.bitmask version 0.5.2 Conflicts: docs/man/bitmask-root.1.rst docs/man/bitmask.1.rst
Diffstat (limited to 'src/leap/bitmask/services/eip/linuxvpnlauncher.py')
-rw-r--r--src/leap/bitmask/services/eip/linuxvpnlauncher.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/eip/linuxvpnlauncher.py b/src/leap/bitmask/services/eip/linuxvpnlauncher.py
index 1f0813e0..955768d1 100644
--- a/src/leap/bitmask/services/eip/linuxvpnlauncher.py
+++ b/src/leap/bitmask/services/eip/linuxvpnlauncher.py
@@ -63,14 +63,20 @@ def _is_auth_agent_running():
:return: True if it's running, False if it's not.
:rtype: boolean
"""
+ # Note that gnome-shell does not uses a separate process for the
+ # polkit-agent, it uses a polkit-agent within its own process so we can't
+ # ps-grep a polkit process, we can ps-grep gnome-shell itself.
+
# the [x] thing is to avoid grep match itself
polkit_options = [
'ps aux | grep "polkit-[g]nome-authentication-agent-1"',
'ps aux | grep "polkit-[k]de-authentication-agent-1"',
'ps aux | grep "polkit-[m]ate-authentication-agent-1"',
- 'ps aux | grep "[l]xpolkit"'
+ 'ps aux | grep "[l]xpolkit"',
+ 'ps aux | grep "[g]nome-shell"',
]
is_running = [commands.getoutput(cmd) for cmd in polkit_options]
+
return any(is_running)