some tools want to run with a different gtk theme
authorJoerg Jaspert <joerg@ganneff.de>
Tue, 12 Mar 2013 11:05:30 +0000 (12:05 +0100)
committerJoerg Jaspert <joerg@ganneff.de>
Tue, 12 Mar 2013 11:05:30 +0000 (12:05 +0100)
bin/gtkfix [new file with mode: 0755]
bin/iceweasel [changed from file to symlink]
bin/libreoffice [new symlink]
bin/localc [new symlink]
bin/lodraw [new symlink]
bin/lowriter [new symlink]

diff --git a/bin/gtkfix b/bin/gtkfix
new file mode 100755 (executable)
index 0000000..2ce8b80
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+export GTK2_RC_FILES=/usr/share/themes/Xfce/gtk-2.0/gtkrc
+
+if [ -L "$0" ]; then
+    cmd="$(basename "$0")"
+    set -- "$cmd" "$@"
+fi
+
+# Minified path
+PATH=/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/usr/games
+# Special case one thing: iceweasel
+if [[ "$0" =~ iceweasel ]]; then
+    eatmydata  "$@"
+else
+    $@
+fi
deleted file mode 100755 (executable)
index 5982a05033e385631c0f90df20be04c514222129..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-export GTK2_RC_FILES=/usr/share/themes/Xfce/gtk-2.0/gtkrc
-eatmydata /usr/bin/iceweasel "$@"
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..6ff8f496c4fbcb740970178525dca2247feb6344
--- /dev/null
@@ -0,0 +1 @@
+gtkfix
\ No newline at end of file
diff --git a/bin/libreoffice b/bin/libreoffice
new file mode 120000 (symlink)
index 0000000..6ff8f49
--- /dev/null
@@ -0,0 +1 @@
+gtkfix
\ No newline at end of file
diff --git a/bin/localc b/bin/localc
new file mode 120000 (symlink)
index 0000000..6ff8f49
--- /dev/null
@@ -0,0 +1 @@
+gtkfix
\ No newline at end of file
diff --git a/bin/lodraw b/bin/lodraw
new file mode 120000 (symlink)
index 0000000..6ff8f49
--- /dev/null
@@ -0,0 +1 @@
+gtkfix
\ No newline at end of file
diff --git a/bin/lowriter b/bin/lowriter
new file mode 120000 (symlink)
index 0000000..6ff8f49
--- /dev/null
@@ -0,0 +1 @@
+gtkfix
\ No newline at end of file