예제 #1
0
def main():
    from multiprocessing import freeze_support  #@UnresolvedImport
    freeze_support()

    os.environ["XPRA_REDIRECT_OUTPUT"] = "1"
    #os.environ["XPRA_LOG_FILENAME"] = "E:\\Proxy.log"
    #os.environ["XPRA_ALL_DEBUG"] = "1"
    os.environ["XPRA_NAMED_PIPE_UNRESTRICTED"] = "1"

    from xpra.platform import init, set_default_name
    set_default_name("Xpra-Proxy")
    init()

    from xpra.scripts.main import main
    args = sys.argv[:1] + [
        "proxy",
        "--bind=xpra-proxy",
        "--auth=sys",
        "--bind-tcp=0.0.0.0:14500",
        "--tcp-auth=sys",
        #"--mdns=no",
        "-d",
        "win32,proxy",
    ] + sys.argv[1:]
    commonappdata = get_commonappdata_dir()
    if commonappdata:
        ssl_cert = os.path.join(commonappdata, "Xpra", "ssl-cert.pem")
        if os.path.exists(ssl_cert):
            args.append("--ssl-cert=%s" % ssl_cert)
    sys.exit(main(sys.argv[0], args))
예제 #2
0
def main():
    from multiprocessing import freeze_support #@UnresolvedImport
    freeze_support()

    os.environ["XPRA_REDIRECT_OUTPUT"] = "1"
    #os.environ["XPRA_LOG_FILENAME"] = "E:\\Shadow.log"
    #os.environ["XPRA_ALL_DEBUG"] = "1"
    #os.environ["XPRA_NAMED_PIPE_UNRESTRICTED"] = "1"
    from xpra.platform import init, set_default_name
    set_default_name("Xpra-Shadow")
    init()

    from xpra.scripts.main import main
    args = sys.argv[:1] + [
        "shadow",
        ] + sys.argv[1:]
    commonappdata = get_commonappdata_dir()
    if commonappdata:
        ssl_cert = os.path.join(commonappdata, "Xpra", "ssl-cert.pem")
        if os.path.exists(ssl_cert):
            args.append("--ssl-cert=%s" % ssl_cert)
    sys.exit(main(sys.argv[0], args))
예제 #3
0
파일: xpra_cmd.py 프로젝트: svn2github/Xpra
#!/usr/bin/env python

# normally, the win32 platform code redirects the output to a log file
# this script disables that and is compiled as "Xpra_cmd.exe"
# instead of "Xpra.exe"

import sys
from xpra.platform.win32 import set_redirect_output

set_redirect_output(False)

try:
    import win32api  # @UnresolvedImport

    win32api.SetConsoleTitle("Xpra")
except:
    pass
from xpra.scripts.main import main

code = main("Xpra.exe", sys.argv)
sys.exit(code)
예제 #4
0
#!/usr/bin/env python

# normally, the win32 platform code redirects the output to a log file
# this script disables that and is compiled as "Xpra_cmd.exe"
# instead of "Xpra.exe"

import sys
from xpra.platform.win32 import set_redirect_output
set_redirect_output(False)

try:
    import win32api  #@UnresolvedImport
    win32api.SetConsoleTitle("Xpra")
except:
    pass
from xpra.scripts.main import main
code = main("Xpra.exe", sys.argv)
sys.exit(code)
예제 #5
0
    os.environ["XPRA_REDIRECT_OUTPUT"] = "1"
    #os.environ["XPRA_LOG_FILENAME"] = "E:\\Proxy.log"
    #os.environ["XPRA_ALL_DEBUG"] = "1"
    os.environ["XPRA_NAMED_PIPE_UNRESTRICTED"] = "1"

    from xpra.platform import init, set_default_name
    set_default_name("Xpra-Proxy")
    init()

    from xpra.scripts.main import main
    args = sys.argv[:1] + [
        "proxy",
        "--bind=xpra-proxy",
        "--auth=sys",
        "--bind-tcp=0.0.0.0:14500",
        "--tcp-auth=sys",
        #"--mdns=no",
        "-d",
        "win32,proxy",
    ] + sys.argv[1:]
    commonappdata = get_commonappdata_dir()
    if commonappdata:
        ssl_cert = os.path.join(commonappdata, "Xpra", "ssl-cert.pem")
        if os.path.exists(ssl_cert):
            args.append("--ssl-cert=%s" % ssl_cert)
    sys.exit(main(sys.argv[0], args))


if __name__ == "__main__":
    main()
예제 #6
0
#!/usr/bin/env python

import os
import sys

os.environ["XPRA_REDIRECT_OUTPUT"] = "1"

from xpra.platform import init, set_default_name

set_default_name("Xpra-Proxy")
init()

from xpra.scripts.main import main

sys.exit(main(sys.argv[0], sys.argv))