installer.executeDetached() behaves differently between Mac & Linux
-
Hello: I have used QtInstaller to package my application. I tried launching it on Linux and Mac respectively. In both cases, the UI portion comes up just fine.
At the very end of the UI installer, I have the directive to:installer.executeDetached("myScript.bash");
It should execute a bash script. On Linux, it did launch.
On mac, when I clicked on myinstaller.app, it launches UI but won't execute my bash script at the end.Does executeDetached() behaves differently between Mac and Linux?
-
Hi,
Might be a silly question but are you sure that your script can run on macOS ?
What does that script do ? -
Did you check your system logs ?
I am suspecting that you are changing users to install your package and that one does not have access to the Docker daemon. -
@SGaist I did check logs, nothing stands out...No errors.
I did notice something. From terminal, I cd into the myApplication.app directory and under Contents/MacOS to locate the actual binary.
I then run it manually. That works too.That led me to think, what does executeDetached() do? Is it a full shell environment?
-
No it is not. It will try to execute whatever you ask but it does not mean you have a shell.
-
Depending on the macOS version you may have to also notarize it.
I currently do not know whether there's any relation between the two but I would not find it surprising.