Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: third_party/xdg-utils/scripts/xdg-settings

Issue 274055: Add %s to the command in the Gnome url handlers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 #--------------------------------------------- 2 #---------------------------------------------
3 # xdg-settings 3 # xdg-settings
4 # 4 #
5 # Utility script to get various settings from the desktop environment. 5 # Utility script to get various settings from the desktop environment.
6 # 6 #
7 # Refer to the usage() function below for usage. 7 # Refer to the usage() function below for usage.
8 # 8 #
9 # Copyright 2009, Google Inc. 9 # Copyright 2009, Google Inc.
10 # 10 #
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 binary="`desktop_file_to_binary "$1"`" 627 binary="`desktop_file_to_binary "$1"`"
628 [ "$binary" ] || exit_failure_file_missing 628 [ "$binary" ] || exit_failure_file_missing
629 set_browser_mime "$1" || return 629 set_browser_mime "$1" || return
630 630
631 # Set the default browser. 631 # Set the default browser.
632 gconftool-2 --type string --set /desktop/gnome/applications/browser/exec "$b inary" 632 gconftool-2 --type string --set /desktop/gnome/applications/browser/exec "$b inary"
633 gconftool-2 --type bool --set /desktop/gnome/applications/browser/needs_term false 633 gconftool-2 --type bool --set /desktop/gnome/applications/browser/needs_term false
634 gconftool-2 --type bool --set /desktop/gnome/applications/browser/nremote tr ue 634 gconftool-2 --type bool --set /desktop/gnome/applications/browser/nremote tr ue
635 # Set the handler for HTTP and HTTPS. 635 # Set the handler for HTTP and HTTPS.
636 for protocol in http https; do 636 for protocol in http https; do
637 gconftool-2 --type string --set /desktop/gnome/url-handlers/$protocol/co mmand "$binary" 637 gconftool-2 --type string --set /desktop/gnome/url-handlers/$protocol/co mmand "$binary %s"
638 gconftool-2 --type bool --set /desktop/gnome/url-handlers/$protocol/need s_terminal false 638 gconftool-2 --type bool --set /desktop/gnome/url-handlers/$protocol/need s_terminal false
639 gconftool-2 --type bool --set /desktop/gnome/url-handlers/$protocol/enab led true 639 gconftool-2 --type bool --set /desktop/gnome/url-handlers/$protocol/enab led true
640 done 640 done
641 # Set the handler for about: and unknown URL types. 641 # Set the handler for about: and unknown URL types.
642 for protocol in about unknown; do 642 for protocol in about unknown; do
643 gconftool-2 --type string --set /desktop/gnome/url-handlers/$protocol/co mmand "$binary" 643 gconftool-2 --type string --set /desktop/gnome/url-handlers/$protocol/co mmand "$binary %s"
644 done 644 done
645 } 645 }
646 646
647 # }}} GNOME 647 # }}} GNOME
648 # {{{ xfce 648 # {{{ xfce
649 649
650 get_browser_xfce() 650 get_browser_xfce()
651 { 651 {
652 search="${XDG_CONFIG_HOME:-$HOME/.config}:${XDG_CONFIG_DIRS:-/etc/xdg}" 652 search="${XDG_CONFIG_HOME:-$HOME/.config}:${XDG_CONFIG_DIRS:-/etc/xdg}"
653 IFS=: 653 IFS=:
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 ;; 859 ;;
860 860
861 generic) 861 generic)
862 dispatch_generic "$@" 862 dispatch_generic "$@"
863 ;; 863 ;;
864 864
865 *) 865 *)
866 exit_failure_operation_impossible "unknown desktop environment" 866 exit_failure_operation_impossible "unknown desktop environment"
867 ;; 867 ;;
868 esac 868 esac
OLDNEW
« no previous file with comments | « no previous file | third_party/xdg-utils/scripts/xdg-settings.in » ('j') | third_party/xdg-utils/scripts/xdg-settings.in » ('J')

Powered by Google App Engine
This is Rietveld 408576698