comparison src/gtknotify.c @ 9405:7b48e7c07bcf

[gaim-migrate @ 10219] Support for the Epiphany web browser. This one seems silly to me. Like, people should just use gnome-default or something. Eh. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 26 Jun 2004 16:41:53 +0000
parents 0c31db6bde62
children a88c8ca91518
comparison
equal deleted inserted replaced
9404:01fe2254c570 9405:7b48e7c07bcf
479 int place; 479 int place;
480 480
481 web_browser = gaim_prefs_get_string("/gaim/gtk/browsers/browser"); 481 web_browser = gaim_prefs_get_string("/gaim/gtk/browsers/browser");
482 place = gaim_prefs_get_int("/gaim/gtk/browsers/place"); 482 place = gaim_prefs_get_int("/gaim/gtk/browsers/place");
483 483
484 if (!strcmp(web_browser, "netscape")) 484 if (!strcmp(web_browser, "epiphany") ||
485 { 485 !strcmp(web_browser, "galeon"))
486 command = g_strdup_printf("netscape \"%s\"", uri); 486 {
487
488 if (place == GAIM_BROWSER_NEW_WINDOW) 487 if (place == GAIM_BROWSER_NEW_WINDOW)
489 { 488 command = g_strdup_printf("%s -w \"%s\"", web_browser, uri);
490 remote_command = g_strdup_printf("netscape -remote "
491 "\"openURL(\"%s\",new-window)\"",
492 uri);
493 }
494 else if (place == GAIM_BROWSER_CURRENT)
495 {
496 remote_command = g_strdup_printf("netscape -remote "
497 "\"openURL(\"%s\")\"", uri);
498 }
499 }
500 else if (!strcmp(web_browser, "opera"))
501 {
502 if (place == GAIM_BROWSER_NEW_WINDOW)
503 command = g_strdup_printf("opera -newwindow \"%s\"", uri);
504 else if (place == GAIM_BROWSER_NEW_TAB) 489 else if (place == GAIM_BROWSER_NEW_TAB)
505 command = g_strdup_printf("opera -newpage \"%s\"", uri); 490 command = g_strdup_printf("%s -n \"%s\"", web_browser, uri);
506 else if (place == GAIM_BROWSER_CURRENT)
507 {
508 remote_command = g_strdup_printf("opera -remote "
509 "\"openURL(\"%s\")\"", uri);
510 command = g_strdup_printf("opera \"%s\"", uri);
511 }
512 else 491 else
513 command = g_strdup_printf("opera \"%s\"", uri); 492 command = g_strdup_printf("%s \"%s\"", web_browser, uri);
514 493 }
494 else if (!strcmp(web_browser, "gnome-open"))
495 {
496 command = g_strdup_printf("gnome-open \"%s\"", uri);
515 } 497 }
516 else if (!strcmp(web_browser, "kfmclient")) 498 else if (!strcmp(web_browser, "kfmclient"))
517 { 499 {
518 command = g_strdup_printf("kfmclient openURL \"%s\"", uri); 500 command = g_strdup_printf("kfmclient openURL \"%s\"", uri);
519 /* 501 /*
520 * Does Konqueror have options to open in new tab 502 * Does Konqueror have options to open in new tab
521 * and/or current window? 503 * and/or current window?
522 */ 504 */
523 }
524 else if (!strcmp(web_browser, "gnome-open"))
525 {
526 command = g_strdup_printf("gnome-open \"%s\"", uri);
527 }
528 else if (!strcmp(web_browser, "galeon"))
529 {
530 if (place == GAIM_BROWSER_NEW_WINDOW)
531 command = g_strdup_printf("galeon -w \"%s\"", uri);
532 else if (place == GAIM_BROWSER_NEW_TAB)
533 command = g_strdup_printf("galeon -n \"%s\"", uri);
534 else
535 command = g_strdup_printf("galeon \"%s\"", uri);
536 } 505 }
537 else if (!strcmp(web_browser, "mozilla") || 506 else if (!strcmp(web_browser, "mozilla") ||
538 !strcmp(web_browser, "mozilla-firebird") || 507 !strcmp(web_browser, "mozilla-firebird") ||
539 !strcmp(web_browser, "firefox")) 508 !strcmp(web_browser, "firefox"))
540 { 509 {
565 else if (place == GAIM_BROWSER_CURRENT) 534 else if (place == GAIM_BROWSER_CURRENT)
566 remote_command = g_strdup_printf("%s %s -remote " 535 remote_command = g_strdup_printf("%s %s -remote "
567 "\"openURL(\"%s\")\"", 536 "\"openURL(\"%s\")\"",
568 web_browser, args, uri); 537 web_browser, args, uri);
569 } 538 }
539 else if (!strcmp(web_browser, "netscape"))
540 {
541 command = g_strdup_printf("netscape \"%s\"", uri);
542
543 if (place == GAIM_BROWSER_NEW_WINDOW)
544 {
545 remote_command = g_strdup_printf("netscape -remote "
546 "\"openURL(\"%s\",new-window)\"",
547 uri);
548 }
549 else if (place == GAIM_BROWSER_CURRENT)
550 {
551 remote_command = g_strdup_printf("netscape -remote "
552 "\"openURL(\"%s\")\"", uri);
553 }
554 }
555 else if (!strcmp(web_browser, "opera"))
556 {
557 if (place == GAIM_BROWSER_NEW_WINDOW)
558 command = g_strdup_printf("opera -newwindow \"%s\"", uri);
559 else if (place == GAIM_BROWSER_NEW_TAB)
560 command = g_strdup_printf("opera -newpage \"%s\"", uri);
561 else if (place == GAIM_BROWSER_CURRENT)
562 {
563 remote_command = g_strdup_printf("opera -remote "
564 "\"openURL(\"%s\")\"", uri);
565 command = g_strdup_printf("opera \"%s\"", uri);
566 }
567 else
568 command = g_strdup_printf("opera \"%s\"", uri);
569
570 }
570 else if (!strcmp(web_browser, "custom")) 571 else if (!strcmp(web_browser, "custom"))
571 { 572 {
572 const char *web_command; 573 const char *web_command;
573 574
574 web_command = gaim_prefs_get_string("/gaim/gtk/browsers/command"); 575 web_command = gaim_prefs_get_string("/gaim/gtk/browsers/command");