Ignore:
Timestamp:
02/11/14 01:49:26 (10 months ago)
Author:
yurkis <yurkis@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
3f6d079
Parents:
521677a
Message:

Simplify DE profiles. Now profile may be fully declarative

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/de-info/de-profiles/mate.profile

    r04d2faf rdea54da  
    11DE_NAME="Mate" 
    22XDG="YES" 
     3 
     4DE_SESSION_NAME="MATE" 
     5DE_METAPACKAGE="Mate" 
     6DE_INSTALL_FILE="mate-session" 
     7 
    38DE_SU="pc-su %s" 
    49DE_FILEMAN="nautilus %s" 
     
    611DE_TERMINAL_TITLE="-t" 
    712DE_TERMINAL_COMMAND="-e" 
    8 DE_SESSION_NAME="MATE" 
    913 
    10 active() { 
    11 if [ "$PCDM_SESSION" = "$DE_SESSION_NAME" ]; then 
    12 DE_ACTIVE=1 
    13 fi   
    1414 
    15 } 
    16  
    17 installed() { 
    18 # Check via pc-metapkgmanager if it exists 
    19 which pc-metapkgmanager >/dev/null 2>/dev/null 
    20 if [ $? -eq 0 ] ; then 
    21   pc-metapkgmanager status Mate | grep "is installed" >/dev/null 
    22   if [ $? -eq 0 ] ; then 
    23     DE_INSTALLED=1 
    24   fi 
    25 else 
    26   which mate-session >/dev/null 2>/dev/null 
    27   if [ $? -eq 0 ] ; then 
    28     DE_INSTALLED=1 
    29   fi 
    30 fi 
    31  
    32 } 
Note: See TracChangeset for help on using the changeset viewer.