Przeglądaj źródła

at least support auto-loading homepage on initial startup

Ralf S. Engelschall 23 lat temu
rodzic
commit
b9db6f4556
1 zmienionych plików z 12 dodań i 3 usunięć
  1. 12 3
      mozilla/mozilla.sh

+ 12 - 3
mozilla/mozilla.sh

@@ -134,8 +134,13 @@ for url in "$@"; do
     if [ ".$first" = .yes -a ".$restart" = .yes ]; then
         #   handling of first URL if restarting is necessary
         verbose "running new process"
-        verbose "exec: $mozilla_bin \"$url\" >/dev/null 2>&1 &"
-        $mozilla_bin "$url" >/dev/null 2>&1 &
+        if [ ".$url" = ".about:blank" ]; then
+            verbose "exec: $mozilla_bin >/dev/null 2>&1 &"
+            $mozilla_bin >/dev/null 2>&1 &
+        else
+            verbose "exec: $mozilla_bin \"$url\" >/dev/null 2>&1 &"
+            $mozilla_bin "$url" >/dev/null 2>&1 &
+        fi
     else
         #   delayed waiting for process to be finally remotely available
         #   if it was started from scratch for the handling of the first
@@ -157,7 +162,11 @@ for url in "$@"; do
 
         #   determine remote command
         if [ ".$opt_w" = .yes ]; then
-            cmd="openURL($url, new-window)"
+            if [ ".$url" = ".about:blank" ]; then
+                cmd="xfeDoCommand(openBrowser)"
+            else
+                cmd="openURL($url, new-window)"
+            fi
         elif [ ".$opt_t" = .yes ]; then
             cmd="openURL($url, new-tab)"
         else