Netsurf now appears in the 'Open with' menu for HTML files.

svn path=/trunk/netsurf/; revision=12435
This commit is contained in:
Sven Weidauer 2011-05-19 16:04:54 +00:00
parent 65dc81668c
commit ed7e65c74b
2 changed files with 23 additions and 1 deletions

View File

@ -122,5 +122,12 @@
forEventClass:kInternetEventClass andEventID:kAEGetURL];
}
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
{
NSURL *url = [NSURL fileURLWithPath: filename];
browser_window_create( [[url absoluteString] UTF8String], NULL, NULL, true, false );
return YES;
}
@end

View File

@ -5,7 +5,22 @@
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array/>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array/>
<key>CFBundleTypeMIMETypes</key>
<array/>
<key>CFBundleTypeName</key>
<string>HTML</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>public.html</string>
</array>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>