From 6e04f88d71ed7211cf574db9d07c8de1c2a1a175 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 31 Dec 2013 10:07:20 +0000 Subject: fdo#39007: blind fix for renamed OS X restore-state file Remove also a potential restorecount.txt file (as reported in the bug) in addition to a potential restorecount.plist. Change-Id: I96fb688e9dda804f240cad8f2109c5880b544302 Reviewed-on: https://gerrit.libreoffice.org/7239 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- vcl/osx/salinst.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl') diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 538747ca7fff..58b0f0fb7a6b 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -187,6 +187,7 @@ static void initNSApp() sal_Bool ImplSVMainHook( int * pnInit ) { 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]); gpnInit = pnInit; -- cgit