[OSX] Can't open .app from sandboxed application
GGAllin last edited by GGAllin
I need to open some flash.app in my application sandboxed working dir
In windows QDesktopServices::openUrl(QUrl::fromLocalFile(path)) works great, but in mac os i've no permission to open files in
so i've tried this way
command = "open '"+path+"/Contents/MacOS/Flash\ Player'"; system(qPrintable(command));
But doesn't work.
it'ìs work fine when i try to open jar files
QString jarCommand = "java -jar '"+path+"'"; system(qPrintable(jarCommand));
Any idea ?
Thanks in advance.
You should use QProcess rather than system.
Note that sandboxed app have restrictions on what they can do compared to other applications so they might apply here.