Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Théo Giovanna
bitmask_client
Commits
9c3a713f
Unverified
Commit
9c3a713f
authored
Apr 18, 2016
by
Kali Kaneko
Browse files
[style] autopep8
parent
e7094767
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/leap/bitmask/app.py
View file @
9c3a713f
...
...
@@ -76,6 +76,7 @@ codecs.register(lambda name: codecs.lookup('utf-8')
if
name
==
'cp65001'
else
None
)
import
psutil
def
qt_hack_ubuntu
():
"""Export two env vars to avoid gui corruption, see #8028"""
os
.
environ
[
'QT_GRAPHICSSYSTEM'
]
=
'native'
...
...
src/leap/bitmask/services/eip/darwinvpnlauncher.py
View file @
9c3a713f
...
...
@@ -112,7 +112,8 @@ class DarwinVPNLauncher(VPNLauncher):
:returns: True if kext is loaded, False otherwise.
:rtype: bool
"""
loaded
=
bool
(
commands
.
getoutput
(
'kextstat | grep "net.sf.tuntaposx.tun"'
))
loaded
=
bool
(
commands
.
getoutput
(
'kextstat | grep "net.sf.tuntaposx.tun"'
))
if
not
loaded
:
logger
.
error
(
"tuntaposx extension not loaded!"
)
return
loaded
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment