Example #1
0
def run_startup_hooks():
    if len(sys.argv) > 1 and sys.argv[1] == "--esky-spawn-sudo":
        if sys.version_info[0] > 2:
            proxy = base.b64unpickle(sys.argv[2])
            pipe = base.b64unpickle(sys.argv[3])
        else:
            proxy = pickle.loads(b64decode(sys.argv[2]))
            pipe = pickle.loads(b64decode(sys.argv[3]))
        os.write(1,struct.pack("I",os.getpid()))
        proxy.run(pipe)
        sys.exit(0)
Example #2
0
def run_startup_hooks():
    if len(sys.argv) > 1 and sys.argv[1] == "--esky-spawn-sudo":
        if sys.version_info[0] > 2:
            proxy = base.b64unpickle(sys.argv[2])
            pipe = base.b64unpickle(sys.argv[3])
        else:
            proxy = pickle.loads(b64decode(sys.argv[2]))
            pipe = pickle.loads(b64decode(sys.argv[3]))
        os.write(1, struct.pack("I", os.getpid()))
        proxy.run(pipe)
        sys.exit(0)
Example #3
0
def run_startup_hooks():
    if len(sys.argv) > 1 and sys.argv[1] == "--esky-spawn-sudo":
        proxy = base.b64unpickle(sys.argv[2])
        pipe = base.b64unpickle(sys.argv[3])
        proxy.run(pipe)
        sys.exit(0)
Example #4
0
def run_startup_hooks():
    if len(sys.argv) > 1 and sys.argv[1] == "--esky-spawn-sudo":
        proxy = base.b64unpickle(sys.argv[2])
        pipe = base.b64unpickle(os.environ["ESKY_SUDO_PIPE"])
        proxy.run(pipe)
        sys.exit(0)
Example #5
0
def run_startup_hooks():
    if len(sys.argv) > 1 and sys.argv[1] == "--esky-spawn-sudo":
        proxy = base.b64unpickle(sys.argv[2])
        pipe = base.b64unpickle(sys.argv[3])
        proxy.run(pipe)
        sys.exit(0)
Example #6
0
def run_startup_hooks():
    if len(sys.argv) > 1 and sys.argv[1] == "--esky-spawn-sudo":
        proxy = base.b64unpickle(sys.argv[2])
        pipe = base.b64unpickle(os.environ["ESKY_SUDO_PIPE"])
        proxy.run(pipe)
        sys.exit(0)