Add an Xsession.post script for Fremantle to launch browser-switchboard on session...
[browser-switch] / main.c
diff --git a/main.c b/main.c
index a6d2c89..2e19b84 100644 (file)
--- a/main.c
+++ b/main.c
@@ -53,7 +53,7 @@ static void read_config(int signalnum) {
        /* continuous mode is required on Fremantle */
        ctx.continuous_mode = 1;
        if (!cfg.continuous_mode)
-               log_msg("WARNING: continuous_mode = 0 operation no longer supported, ignoring config setting");
+               log_msg("continuous_mode = 0 operation no longer supported, ignoring config setting\n");
 #else
        ctx.continuous_mode = cfg.continuous_mode;
 #endif
@@ -66,6 +66,9 @@ static void read_config(int signalnum) {
        } else
                ctx.other_browser_cmd = NULL;
        update_default_browser(&ctx, cfg.default_browser);
+#ifdef FREMANTLE
+       ctx.autostart_microb = cfg.autostart_microb;
+#endif
 
        log_msg("continuous_mode: %d\n", cfg.continuous_mode);
        log_msg("default_browser: '%s'\n", cfg.default_browser);
@@ -142,7 +145,7 @@ int main() {
                        error->message);
                return 1;
        }
-       if (reqname_result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {  
+       if (reqname_result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
                log_msg("Another browser-switchboard already running\n");
                return 1;
        }