[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/soprano/backends/virtuoso
From:       Vishesh Handa <handa.vish () gmail ! com>
Date:       2010-08-14 8:33:32
Message-ID: 20100814083332.300FCAC86C () svn ! kde ! org
[Download RAW message or body]

SVN commit 1163517 by vhanda:

Set the working directory of the virtuoso process. 
This is to avoid the temporary file "checkpoint_in_progress" from being created in \
the $HOME directory.  It will now be created in the new working directory which is \
the storage directory.


 M  +3 -0      virtuosocontroller.cpp  


--- trunk/kdesupport/soprano/backends/virtuoso/virtuosocontroller.cpp \
#1163516:1163517 @@ -138,6 +138,9 @@
 #endif
         qDebug() << "Starting Virtuoso server:" << virtuosoExe << args;
 
+        // We need to set the working directory cause virtuoso creates a temp \
checkpoint_in_progress file +        // in the directory it was started. 
+        m_virtuosoProcess.setWorkingDirectory( storageDir );
         m_virtuosoProcess.start( virtuosoExe, args, QIODevice::ReadOnly );
         m_virtuosoProcess.setReadChannel( QProcess::StandardError );
         m_virtuosoProcess.closeReadChannel( QProcess::StandardOutput );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic