source: lliurex-artwork-defaults/trunk/fuentes/mate/etc/X11/Xsession.d/65compiz_profile-on-lliurex-session @ 8153

Last change on this file since 8153 was 8153, checked in by hectorgh, 18 months ago

fixing variable comparison

File size: 882 bytes
Line 
1# This file is sourced by Xsession(5), not executed.
2# Select unity profile if we are in the default session.
3# The default profile is used otherwise.
4
5is_lliurex(){
6    T=$(echo $DESKTOP_SESSION |egrep -io 'lliurex'|uniq)
7    if [ -n "$T" ]; then
8        return 0
9    else
10        return 1
11    fi
12}
13
14
15if is_lliurex; then
16    if [ "x$DESKTOP_SESSION" = "xlliurex-compiz" ]; then
17        dconf write /org/mate/desktop/session/required-components/windowmanager "'compiz'"
18    else
19        dconf reset /org/mate/desktop/session/required-components/windowmanager
20    fi
21
22    if [ "x$LTSP_FATCLIENT" = 'false' ]; then
23        dconf reset /org/mate/desktop/session/required-components/windowmanager
24    fi
25
26    if [ "x$DESKTOP_SESSION" = "xlliurex-compiz" -o "x$XDG_SESSION_DESKTOP" = "xlliurex-compiz" ]; then
27        COMPIZ_CONFIG_PROFILE="mate"
28        export COMPIZ_CONFIG_PROFILE
29    fi
30fi
Note: See TracBrowser for help on using the repository browser.