<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Executing linux commands feom QML App]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I would like to transfer files between waydroid and UT folders (eg. Images, videos, ...).<br />
The App would accept media from other apps snf copy those files into the waydroid folders.<br />
Then from gallery for instance I could use share with my app to have it copied to waydroid.</p>
<p dir="auto">I believe this app would require full system access?<br />
Is there a way to run os commands from within qml app?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forums.ubports.com/topic/7266/executing-linux-commands-feom-qml-app</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 02:09:30 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/7266.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Jan 2022 08:31:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Executing linux commands feom QML App on Sat, 15 Jan 2022 10:55:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aarontheissueguy" aria-label="Profile: aarontheissueguy">@<bdi>aarontheissueguy</bdi></a> thanks for the advise. I will look into that</p>
]]></description><link>https://forums.ubports.com/post/60197</link><guid isPermaLink="true">https://forums.ubports.com/post/60197</guid><dc:creator><![CDATA[Homer]]></dc:creator><pubDate>Sat, 15 Jan 2022 10:55:33 GMT</pubDate></item><item><title><![CDATA[Reply to Executing linux commands feom QML App on Sat, 15 Jan 2022 10:08:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homer" aria-label="Profile: homer">@<bdi>homer</bdi></a> 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 <a href="https://docs.python.org/3/library/os.html" rel="nofollow ugc">os</a> module to run system commands. If you need root access, os will not be very practical though. We use <a href="https://pexpect.readthedocs.io/en/stable/" rel="nofollow ugc">pexpect</a> to do more complex operations. It allows you to start a bash session and work with that, as if you were in the terminal.</p>
<p dir="auto">If you want to see an example of this look here: <a href="https://github.com/Aarontheissueguy/WaydroidHelper/blob/main/src/installer.py" rel="nofollow ugc">https://github.com/Aarontheissueguy/WaydroidHelper/blob/main/src/installer.py</a></p>
<p dir="auto">We are also planning to add a similar feature to WayDroidHelper eventually</p>
]]></description><link>https://forums.ubports.com/post/60195</link><guid isPermaLink="true">https://forums.ubports.com/post/60195</guid><dc:creator><![CDATA[aarontheissueguy]]></dc:creator><pubDate>Sat, 15 Jan 2022 10:08:03 GMT</pubDate></item></channel></rss>