[vlc-commits] macosx: fixed crashlog lookup on Mountain Lion
Felix Paul Kühne
git at videolan.org
Wed Aug 22 11:06:49 CEST 2012
vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Aug 22 11:03:51 2012 +0200| [9ce7bc8e92eaefc1027f3cf1c0bc492f56d8f576] | committer: Felix Paul Kühne
macosx: fixed crashlog lookup on Mountain Lion
(cherry picked from commit aaec0d4e1d1331645a61419345534498e976fe2d)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=9ce7bc8e92eaefc1027f3cf1c0bc492f56d8f576
---
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 917b6a5..0a057b8 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1865,7 +1865,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;
More information about the vlc-commits
mailing list