Remove continuous_mode config option from Fremantle UI
[browser-switch] / main.c
diff --git a/main.c b/main.c
index 30361c8..568732d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -49,7 +49,15 @@ static void read_config(int signalnum) {
        swb_config_load(&cfg);
 
        log_config(cfg.logging);
+#ifdef FREMANTLE
+       /* 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");
+#else
        ctx.continuous_mode = cfg.continuous_mode;
+#endif
+       free(ctx.other_browser_cmd);
        if (cfg.other_browser_cmd) {
                if (!(ctx.other_browser_cmd = strdup(cfg.other_browser_cmd))) {
                        log_perror(errno, "Failed to set other_browser_cmd");