Created
October 28, 2016 00:30
-
-
Save tuanpembual/8ef8f5a46baeb7e5cd4fe3e3b5a85e40 to your computer and use it in GitHub Desktop.
BIankOn Session for Manokwari
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 | |
else | |
LANG=XX | |
fi | |
FINAL_L=`locale -a | grep $LANG\$` | |
FALLBACK=`locale -a | grep C.UTF-8 | tail -1` | |
if [ "x$FINAL_L" != "x" ];then | |
LANG=$FINAL_L | |
LC_ALL=$FINAL_L | |
else | |
LANG=$FALLBACK | |
LC_ALL=$FALLBACK | |
fi | |
exec gnome-session --session blankon "$@" | |
exec nm-applet && |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment