def extend_app_autostop(appId, appName, minutes=30):
    req = {'expirationFromNowSeconds': minutes * 60}
    try:
        rClient.set_application_expiration(appId, req)
    except:
        cmd = [
            'zenity',
            '--error',
            '--title',
            "Extending auto-stop failed!",
            '--text',
            "Failure to extend application auto-stop timer of\n\n" +
             "{}\n\nYou should extend it manually in ravshello".format(appName),
             ]
        subprocess.check_call(cmd)
    else:
        cmd = [
            'notify-send',
            '--urgency',
            'low',
            "App auto-stop extended ({})".format(appName),
            "Application auto-stop timer set for {} minutes from now".format(minutes),
            ]
        subprocess.check_call(cmd)
Extend the expiration time of app *appId* by *minutes*.
dataset/ETHPy150Open ryran/ravshello/rav-notify.py/extend_app_autostop