Exemple #1
0
def is_installed():
    '''
    Return whether or not xauth is installed.
    '''
    try:
        p = EasyProcess(['xauth', '-V'])
        p.enable_stdout_log = False
        p.enable_stderr_log = False
        p.call()
    except Exception:
        return False
    else:
        return True
Exemple #2
0
def is_installed():
    """
    Return whether or not xauth is installed.
    """
    try:
        p = EasyProcess(["xauth", "-V"])
        p.enable_stdout_log = False
        p.enable_stderr_log = False
        p.call()
    except Exception:
        return False
    else:
        return True
Exemple #3
0
 def check_installed(cls):
     p = EasyProcess([PROGRAM, '-help'])
     p.enable_stdout_log = False
     p.enable_stderr_log = False
     p.call()
Exemple #4
0
def call(*args):
    '''
    Call xauth with the given args.
    '''
    EasyProcess(['xauth'] + list(args)).call()
Exemple #5
0
 def check_installed(cls):
     EasyProcess([PROGRAM, '-help'], url=URL,
                 ubuntu_package=PACKAGE).check_installed()
Exemple #6
0
def call(*args):
    """
    Call xauth with the given args.
    """
    EasyProcess(["xauth"] + list(args)).call()