vlc | branch: master | Felix Paul Kühne <[email protected]> | Wed Aug 22 11:03:51 2012 +0200| [aaec0d4e1d1331645a61419345534498e976fe2d] | committer: Felix Paul Kühne
macosx: fixed crashlog lookup on Mountain Lion > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aaec0d4e1d1331645a61419345534498e976fe2d --- modules/gui/macosx/intf.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index 50ef643..0f8ee42 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -1878,7 +1878,11 @@ unsigned int CocoaKeyToVLC( unichar i_key ) - (NSString *)latestCrashLogPathPreviouslySeen:(BOOL)previouslySeen { - NSString * crashReporter = [@"~/Library/Logs/CrashReporter" stringByExpandingTildeInPath]; + NSString * crashReporter; + if( OSX_MOUNTAIN_LION ) + crashReporter = [@"~/Library/Logs/DiagnosticReports" stringByExpandingTildeInPath]; + else + crashReporter = [@"~/Library/Logs/CrashReporter" stringByExpandingTildeInPath]; NSDirectoryEnumerator *direnum = [[NSFileManager defaultManager] enumeratorAtPath:crashReporter]; NSString *fname; NSString * latestLog = nil; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
