README.md 1.4 KB

Application Launcher

App Launcher plugin for QT Qml


import ApplicationLauncher 1.0

.....

    ApplicationLaunch {
        id: testScripts
        appName: "cat"
        arguments: "/etc/passwd"

        onAppFinished: {
            console.debug("AppFinished :");
            console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );
            console.debug("stdERR :" + stdERR);
            console.debug("stdOUT :" + stdOUT);
        }

        onAppStarted: {
            console.debug("appStarted :");
            console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );

        }

        onAppError: {
            console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );

        }
    }

......

  • Properties

    • appName : Executeable (with or without parameters!)
    • arguments : arguments if not given with appName
    • stdERR : output of stderr as QString
    • stdOUT : output as QString
    • outFName : copy stdout to outFName when set
    • exitError
    • exitStatus
    • exitCode
  • Events

    • onAppFinished : app has ended properties are available
    • onAppStarted : app has started
    • onAppError : error on start or in app
  • Methods

    • launchScript() : start application (is started async and not in main event queue)