Blame SOURCES/0004-Don-t-do-any-magic-LO-OS-X-application-stuff-in-a-LO.patch

135360
From afd423f49c86a0360510433302b545cfc97f3cbc Mon Sep 17 00:00:00 2001
135360
From: Tor Lillqvist <tml@collabora.com>
135360
Date: Sat, 23 May 2015 10:56:30 +0100
135360
Subject: [PATCH 004/398] Don't do any magic LO OS X application stuff in a
135360
 LOKit client
135360
135360
Change-Id: If6b6c3e48c7d0681958ff0e2afe0b0be5f6ee1ab
135360
(cherry picked from commit 20c9ceb708e4720205a303bf2d41274b1311e36b)
135360
---
135360
 vcl/osx/salinst.cxx | 5 +++++
135360
 1 file changed, 5 insertions(+)
135360
135360
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
135360
index 58a52d58accf..f57f8f4b45c5 100644
135360
--- a/vcl/osx/salinst.cxx
135360
+++ b/vcl/osx/salinst.cxx
135360
@@ -23,6 +23,8 @@
135360
 
135360
 #include <tools/solarmutex.hxx>
135360
 
135360
+#include "comphelper/lok.hxx"
135360
+
135360
 #include "osl/process.h"
135360
 
135360
 #include "rtl/ustrbuf.hxx"
135360
@@ -182,6 +184,9 @@ static void initNSApp()
135360
 
135360
 bool ImplSVMainHook( int * pnInit )
135360
 {
135360
+    if (comphelper::LibreOfficeKit::isActive())
135360
+        return false;
135360
+
135360
     unlink([[NSString stringWithFormat:@"%@/Library/Saved Application State/%s.savedState/restorecount.plist", NSHomeDirectory(), MACOSX_BUNDLE_IDENTIFIER] UTF8String]);
135360
     unlink([[NSString stringWithFormat:@"%@/Library/Saved Application State/%s.savedState/restorecount.txt", NSHomeDirectory(), MACOSX_BUNDLE_IDENTIFIER] UTF8String]);
135360
 
135360
-- 
135360
2.12.0
135360