File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 if (ffStrbufEqualS (wmName, " WindowServer" ))
5151 {
5252 NSError * error;
53- NSDictionary * dict = [NSDictionary dictionaryWithContentsOfURL: [NSURL URLWithString: @" file:///System/Library/CoreServices/WindowManager.app/Contents /version.plist" ]
53+ NSDictionary * dict = [NSDictionary dictionaryWithContentsOfURL: [NSURL URLWithString: @" file:///System/Library/PrivateFrameworks/SkyLight.framework/Resources /version.plist" ]
5454 error: &error];
55- ffStrbufInitS (result, ((NSString *) dict[@" CFBundleVersion" ]).UTF8String );
55+ if (!dict)
56+ {
57+ dict = [NSDictionary dictionaryWithContentsOfURL: [NSURL URLWithString: @" file:///System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/version.plist" ]
58+ error: &error];
59+ }
60+
61+ if (dict)
62+ ffStrbufInitS (result, ((NSString *) dict[@" CFBundleShortVersionString" ]).UTF8String );
5663 }
5764
5865 return NULL ;
You can’t perform that action at this time.
0 commit comments