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:
parent
06f80d731f
commit
d0e7a5ecac
|
@ -182,6 +182,9 @@ int main( int argc, char **argv )
|
||||||
NSApplication *app = cocoa_prepare_app();
|
NSApplication *app = cocoa_prepare_app();
|
||||||
|
|
||||||
for (int i = 1; i < argc; i++) {
|
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 );
|
browser_window_create( argv[i], NULL, NULL, true, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue