Skip command line arguments starting with - (including the annoying -psn_0_... one when launched from Finder).

svn path=/trunk/netsurf/; revision=12242
This commit is contained in:
François Revel 2011-04-26 22:40:17 +00:00
parent 06f80d731f
commit d0e7a5ecac

View File

@ -182,6 +182,9 @@ int main( int argc, char **argv )
NSApplication *app = cocoa_prepare_app();
for (int i = 1; i < argc; i++) {
/* skip -psn_* and other possible options */
if (argv[i][0] == '-')
continue;
browser_window_create( argv[i], NULL, NULL, true, false );
}