summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-03-07 12:56:11 -0400
committerKali Kaneko <kali@leap.se>2014-03-07 12:56:11 -0400
commitce66b82ce46948b8c2a74a17a1d75d7510e77f7f (patch)
tree34ff06f2c5279a676fdae3a383a04bc1cc52619e /src/leap/bitmask
parent06c8d6f98768f173854585e3c9b36c4fa6bfe753 (diff)
add ability to set nice order via env var
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py
index 1146d1d0..2034bc33 100644
--- a/src/leap/bitmask/app.py
+++ b/src/leap/bitmask/app.py
@@ -236,6 +236,11 @@ def main():
# We don't even have logger configured in here
print "Could not ensure server: %r" % (e,)
+ PLAY_NICE = os.environ.get("LEAP_NICE")
+ if PLAY_NICE and PLAY_NICE.isdigit():
+ nice = os.nice(int(PLAY_NICE))
+ logger.info("Setting NICE: %s" % nice)
+
# And then we import all the other stuff
# I think it's safe to import at the top by now -- kali
from leap.bitmask.gui import locale_rc