forked from BlankOn/manokwari
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script to run blankon-session-installer in sessions
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "$@" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "$@" | ||
|