mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Explicitly set working dir of script resolvers being launched
This commit is contained in:
@@ -442,7 +442,11 @@ void ScriptResolver::startProcess()
|
|||||||
#endif // Q_OS_WIN
|
#endif // Q_OS_WIN
|
||||||
|
|
||||||
if( interpreter.isEmpty() )
|
if( interpreter.isEmpty() )
|
||||||
|
{
|
||||||
|
const QFileInfo info( runPath );
|
||||||
|
m_proc.setWorkingDirectory( info.absolutePath() );
|
||||||
m_proc.start( runPath );
|
m_proc.start( runPath );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
m_proc.start( interpreter, QStringList() << filePath() );
|
m_proc.start( interpreter, QStringList() << filePath() );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user