Update debian/rules to build command-line config utility
[browser-switch] / microb
diff --git a/microb b/microb
index 2e00f5e..334523f 100755 (executable)
--- a/microb
+++ b/microb
@@ -10,14 +10,10 @@ case "$1" in
 esac
 
 if pidof browser > /dev/null 2>&1; then
-       dest="com.nokia.osso_browser"
-       path="/com/nokia/osso_browser/request"
-       method="com.nokia.osso_browser.open_new_window"
+       method=open_new_window
 else
-       dest="org.maemo.garage.browser_switchboard"
-       path="/org/maemo/garage/browser_switchboard"
-       method="org.maemo.garage.browser_switchboard.launch_microb"
+       method=switchboard_launch_microb
 fi
 
-dbus-send --session --type=method_call --print-reply --dest="$dest" "$path" "$method" string:${url:-"new_window"} > /dev/null 2>&1
+dbus-send --session --type=method_call --print-reply --dest="com.nokia.osso_browser" /com/nokia/osso_browser/request com.nokia.osso_browser.$method string:${url:-"new_window"} > /dev/null 2>&1
 exit 0