View Single Post
Old 08-25-2019, 11:09 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,558
Karma: 5703586
Join Date: Nov 2009
Device: many
I am obviously not seeing this on my mac. In Sigil/src/Misc/OpenExternally.cpp
you will see that Sigil creates a detached process and runs the following command:

Code:
   if (QFile::exists(filePath) && QDir(application).exists()) {
        QStringList arguments = QStringList() << "-a" << application << filePath;
        return QProcess::startDetached("/usr/bin/open", arguments);
    }
So in Terminal.app please try running the following:

open -a YOUR_APPLICATION_NAME FULLPATHTOAFILETOBEOPENED

Does that work?

Or is this just a silly case of having a space in the application name and us needing to add quotes around the application name itself?
KevinH is offline   Reply With Quote