From: Debian Science Maintainers
 <debian-science-maintainers@lists.alioth.debian.org>
Date: Mon, 29 Sep 2025 16:11:15 +0200
Subject: chemstruc

a new small script to launch firefox or x-www-browser correctly
---
 chemstruc | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 chemstruc

diff --git a/chemstruc b/chemstruc
new file mode 100644
index 0000000..00deee7
--- /dev/null
+++ b/chemstruc
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+case $LANG in
+    fr*)
+	index=index_fr.html
+	;;
+    de*)
+	index=index_de.html
+	;;
+    *)
+	index=index_en.html
+	;;
+esac
+
+if [ -x /usr/bin/firefox ]; then
+    BROWSER=firefox
+else
+    if [ -x /usr/bin/mozilla ]; then
+	BROWSER=mozilla
+    else
+	BROWSER=sensible-browser
+    fi
+fi
+
+($BROWSER http://localhost/chemical-structures/$index &)
+
