From 7d965e251c90087ef93ce04d269cf35ac0763c2e Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 19 Feb 2014 18:31:48 +0100 Subject: [PATCH] RemotePlugin: always use installation directory as working directory On Windows the working directory is not set to the installation directory when launching LMMS by opening an associated project file. Because of this the RemotePlugin programs can't be launched as the required DLL files are missing. Closes #351. --- src/core/RemotePlugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/RemotePlugin.cpp b/src/core/RemotePlugin.cpp index 0128444e8..29baf66b4 100644 --- a/src/core/RemotePlugin.cpp +++ b/src/core/RemotePlugin.cpp @@ -139,6 +139,7 @@ bool RemotePlugin::init( const QString &pluginExecutable, args << QString::number( in()->shmKey() ); #ifndef DEBUG_REMOTE_PLUGIN m_process.setProcessChannelMode( QProcess::ForwardedChannels ); + m_process.setWorkingDirectory( QCoreApplication::applicationDirPath() ); m_process.start( exec, args ); m_watcher.start( QThread::LowestPriority ); #else