summaryrefslogtreecommitdiff
path: root/desktop/scripts/mozwrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/scripts/mozwrapper.sh')
-rwxr-xr-xdesktop/scripts/mozwrapper.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/scripts/mozwrapper.sh b/desktop/scripts/mozwrapper.sh
new file mode 100755
index 000000000000..89b6415358be
--- /dev/null
+++ b/desktop/scripts/mozwrapper.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# if mozilla is not found, specify full path here
+MOZILLA=mozilla
+
+if ${MOZILLA} -remote "openURL($1,new-window)" 2>&1 | egrep -si "not running on display"; then
+ ${MOZILLA} $1
+fi