fix gtkfix
authorJoerg Jaspert <joerg.jaspert@dlh.de>
Tue, 20 Oct 2015 12:17:42 +0000 (14:17 +0200)
committerJoerg Jaspert <joerg.jaspert@dlh.de>
Tue, 20 Oct 2015 12:17:42 +0000 (14:17 +0200)
bin/gtkfix

index f60632d..576b55d 100755 (executable)
@@ -1,10 +1,11 @@
 #!/bin/bash
 
 export GTK2_RC_FILES=/usr/share/themes/Xfce/gtk-2.0/gtkrc
-
 if [ -L "$0" ]; then
     cmd="$(basename "$0")"
     set -- "$cmd" "$@"
+else
+    cmd=$1
 fi
 
 # Minified path
@@ -16,5 +17,5 @@ if [[ "$0" =~ iceweasel ]]; then
     wmname LG3D
     eatmydata  "$@"
 else
-    $@
+    $cmd "${@:2}"
 fi