()
return usr
Fetch the user that launched zarp
Fetch the user that launched zarp
Fetch the user that launched zarp
def get_run_usr():
    """ Fetch the user that launched zarp
    """
    if 'SUDO_USER' in os.environ:
        usr = os.environ['SUDO_USER']
    else:
        usr = init_app('who -m | awk \'{print $1;}\'')

    # verify the user exists
    try:
        getpwnam(usr)
    except:
        usr = None
    return usr
def get_run_usr ( ) : if 'SUDO_USER' in os . environ : usr = os . environ [ 'SUDO_USER' ] else : usr = init_app ( 'who -m | awk \'{print $1;}\'' ) # verify the user exists try : getpwnam ( usr ) except : usr = None return usr