[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'";

    But doesn't work.

    it'ìs work fine when i try to open jar files

    QString jarCommand = "java -jar '"+path+"'";

    Any idea ?

    Thanks in advance.


  • Lifetime Qt Champion


    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