Python Forum
[PyQt] How to run Ubuntu desktop AppImage file from script? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [PyQt] How to run Ubuntu desktop AppImage file from script? (/thread-25052.html)



How to run Ubuntu desktop AppImage file from script? - jungx148 - Mar-17-2020

Hello, all

I am currently searching for a method to launch .AppImage file from PyQt5 script under Ubuntu 16.04.

For instance, what I am trying to do is that I am trying to launch QGroundControl.AppImage by simply clicking a GUI button created by PyQt5.

I would appreciate any reference guide!
Thank you very much.

I found a solution. Please refer to the following script.

---
import os

os.chdir("/home/nvidia/qgc")
os.system("./QGroundControl.AppImage")