Kaydet (Commit) 20c9ceb7 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Don't do any magic LO OS X application stuff in a LOKit client

Change-Id: If6b6c3e48c7d0681958ff0e2afe0b0be5f6ee1ab
üst 490365b2
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include <tools/solarmutex.hxx> #include <tools/solarmutex.hxx>
#include "comphelper/lok.hxx"
#include "osl/process.h" #include "osl/process.h"
#include "rtl/ustrbuf.hxx" #include "rtl/ustrbuf.hxx"
...@@ -182,6 +184,9 @@ static void initNSApp() ...@@ -182,6 +184,9 @@ static void initNSApp()
bool ImplSVMainHook( int * pnInit ) bool ImplSVMainHook( int * pnInit )
{ {
if (comphelper::LibreOfficeKit::isActive())
return false;
unlink([[NSString stringWithFormat:@"%@/Library/Saved Application State/%s.savedState/restorecount.plist", NSHomeDirectory(), MACOSX_BUNDLE_IDENTIFIER] UTF8String]); unlink([[NSString stringWithFormat:@"%@/Library/Saved Application State/%s.savedState/restorecount.plist", NSHomeDirectory(), MACOSX_BUNDLE_IDENTIFIER] UTF8String]);
unlink([[NSString stringWithFormat:@"%@/Library/Saved Application State/%s.savedState/restorecount.txt", NSHomeDirectory(), MACOSX_BUNDLE_IDENTIFIER] UTF8String]); unlink([[NSString stringWithFormat:@"%@/Library/Saved Application State/%s.savedState/restorecount.txt", NSHomeDirectory(), MACOSX_BUNDLE_IDENTIFIER] UTF8String]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment