Introduce command-line config utility
authorSteven Luo <steven+maemo@steven676.net>
Wed, 26 May 2010 14:52:17 +0000 (07:52 -0700)
committerSteven Luo <steven+maemo@steven676.net>
Wed, 26 May 2010 14:52:17 +0000 (07:52 -0700)
commit6ac42ed781a7735221de8aaa28a6647b32608049
treec0b29a525b29926ddab4135e1fc6c4ea0990be1e
parent48377071ac9ac8df7d71526ba849be56524101bd
Introduce command-line config utility

Add a simple command-line configuration utility,
browser-switchboard-config, which can be used to query or set
browser-switchboard config settings.

The primary purpose of this tool is to allow browser vendors to provide
an option in their browsers to set themselves as the default browser,
via something like this (shell-like pseudocode):
if [ -x /usr/bin/browser-switchboard-config ]; then
if [ `browser-switchboard-config -b` = "mybrowser" ]; then
display "MyBrowser is the default browser."
else
button "Make MyBrowser the default browser" action "browser-switchboard-config -s -b mybrowser"
fi
else
display "Install Browser Switchboard to make MyBrowser the default browser"
fi
Browser vendors: setting yourself as the default browser without
prompting the user first (via package maintainer scripts, for example)
is strongly discouraged.
config-ui/Makefile
config-ui/browser-switchboard-config.c [new file with mode: 0644]