Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 4027

Trying to launch external (flatpak) app on Pi with Shell asynchronous. It only works if I have a messagebox after execute

$
0
0

Hi All. I am very new to Xojo. I am trying to launch an flatpak (sandboxed) app with Xojo. In order for it not to pause my app I am launching it mode 1. The app only launches if I have a messagebox right after the .execute:

sh.ExecuteMode = Shell.ExecuteModes.aSynchronous
sh.Execute("/usr/bin/flatpak run myapplication &")
messagebox("")
'This works and myapplication  launches
sh.ExecuteMode = Shell.ExecuteModes.aSynchronous
sh.Execute("/usr/bin/flatpak run myapplication &")
'This does nothing

I don’t need anything back from the application, I just want it to go off and do it’s own thing. Any ideas?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4027

Trending Articles