Skip to content

Commit

Permalink
Added script to run blankon-session-installer in sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
emhaye committed Feb 6, 2013
1 parent ba2ffee commit 2640ee0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 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 "$@"

12 changes: 12 additions & 0 deletions 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 2640ee0

Please sign in to comment.