Skip to content
Browse files

Merge pull request #22 from dotovr/master

Added script to run blankon-session-installer in sessions
  • Loading branch information...
2 parents 888a53b + 2640ee0 commit 09ce24bdbf1879428e32e500d6ab1ba4b800ec0c Mohammad Anwari committed Feb 6, 2013
Showing with 24 additions and 0 deletions.
  1. +12 −0 files/bin/gnome-session-blankon
  2. +12 −0 files/bin/gnome-session-blankon-fallback
View
12 files/bin/gnome-session-blankon
@@ -1,3 +1,15 @@
#! /bin/sh
+
+export TRY_B_I=YES
+if [ -x /usr/bin/blankon-session-try-installer ];then
+ . /usr/bin/blankon-session-try-installer
+fi
+L=`dbus-send --system --print-reply --type=method_call --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User1000 org.freedesktop.DBus.Properties.Get string:'org.freedesktop.Accounts.User' string:'Language' 2>/dev/null|tail -1|awk '{print $3}'|sed -e s/\"//g`
+
+if [ "x$L" != "x" ];then
+ LANG=$L
+ LC_ALL=$L
+fi
+
exec gnome-session --session blankon "$@"
View
12 files/bin/gnome-session-blankon-fallback
@@ -1,3 +1,15 @@
#! /bin/sh
+
+export TRY_B_I=YES
+if [ -x /usr/bin/blankon-session-try-installer ];then
+ . /usr/bin/blankon-session-try-installer
+fi
+L=`dbus-send --system --print-reply --type=method_call --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User1000 org.freedesktop.DBus.Properties.Get string:'org.freedesktop.Accounts.User' string:'Language' 2>/dev/null|tail -1|awk '{print $3}'|sed -e s/\"//g`
+
+if [ "x$L" != "x" ];then
+ LANG=$L
+ LC_ALL=$L
+fi
+
exec gnome-session --session blankon-fallback "$@"

0 comments on commit 09ce24b

Please sign in to comment.
Something went wrong with that request. Please try again.