Executing linux commands feom QML App
-
Hello,
I would like to transfer files between waydroid and UT folders (eg. Images, videos, ...).
The App would accept media from other apps snf copy those files into the waydroid folders.
Then from gallery for instance I could use share with my app to have it copied to waydroid.I believe this app would require full system access?
Is there a way to run os commands from within qml app?Thanks.
-
@homer I dont think it is possible (or practical) to do this through QT alone. If you are able to use a programming language, it is definitely possible. In python you can use the os module to run system commands. If you need root access, os will not be very practical though. We use pexpect to do more complex operations. It allows you to start a bash session and work with that, as if you were in the terminal.
If you want to see an example of this look here: https://github.com/Aarontheissueguy/WaydroidHelper/blob/main/src/installer.py
We are also planning to add a similar feature to WayDroidHelper eventually
-
@aarontheissueguy thanks for the advise. I will look into that