[OSX] Can't open .app from sandboxed application



  • Hi everyone

    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

    /User/myUser/Library/Containers/it.company.appName/Data/Library/Application Support/companyName/AppName
    

    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.

    GG


  • Lifetime Qt Champion

    Hi,

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.