]> gitweb.fluxo.info Git - metadot.git/commitdiff
Starting window manager depending on OS version
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 02:00:34 +0000 (00:00 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 02:00:34 +0000 (00:00 -0200)
modules/profile/xprofile

index c4e4eabe388ea158d5b244932e7eb6536d1799fb..ad4b3d7c53b82f22a0f460b383c7a960d89c2e6e 100755 (executable)
@@ -9,6 +9,9 @@ BACKGROUND=""
 # Session applications
 PROGRAMS=""
 
+# OS Version
+OSVERSION="`cut -d . -f 1 /etc/debian_version`"
+
 # Make sure to load the profile
 . $HOME/.profile
 
@@ -45,6 +48,6 @@ unset GNOME_KEYRING_PID
 unset GNOME_KEYRING_CONTROL
 
 # Execute window manager
-if [ "`cut -d . -f 1 /etc/debian_version`" ]; then
+if [ "$OSVERSION" == '7' ]; then
   awesome
 fi