Skip to content

Instantly share code, notes, and snippets.

@tuanpembual
Created October 28, 2016 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuanpembual/8ef8f5a46baeb7e5cd4fe3e3b5a85e40 to your computer and use it in GitHub Desktop.
Save tuanpembual/8ef8f5a46baeb7e5cd4fe3e3b5a85e40 to your computer and use it in GitHub Desktop.
BIankOn Session for Manokwari
#! /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