The last function to finish my first SailfishOS-App is to execute a shell script with the onTriggered-Tag:
I try on Cover action:
import QProcess 1.0
onTriggered: QProcess::execute(“sh /usr/share/harbour-myapp/script.sh”);
But it doesn´t work.
I like the clean QML-Approach of @BlacksheepGER of Hafenschau.
Beautiful, clean, coal (code)
So after i solve the Problem above i want to build/transform the functionality from the shell-script into pure QML.
The used Shellscript-Functions are:
- Load text from Webserver
- Load Image from Webserver
- Set ambiece through busctl (com.jolla.ambienced)
- Send a Notification trough gdbus call (org.freedesktop.Notifications)