source: src-sh/de-info/de-profiles/cinnamon.profile @ 04d2faf

releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 04d2faf was 04d2faf, checked in by yurkis <yurkis@…>, 11 months ago

Fix current DE detection (using KDE variable now)

  • Property mode set to 100644
File size: 782 bytes
Line 
1DE_NAME="Cinnamon"
2XDG="YES"
3DE_SU="pc-su %s"
4DE_FILEMAN="nautilus %s"
5DE_TERMINAL="gnome-terminal"
6DE_TERMINAL_TITLE="-t"
7DE_TERMINAL_COMMAND="-e"
8DE_SESSION_NAME="CINNAMON"
9
10active() {
11#if [ "$DESKTOP_SESSION" = "cinnamon" ] || [ "$DESKTOP_SESSION" = "32Cinnamon" ] || [ "$DESKTOP_SESSION" = "openbox-cinnamon"  ] || [ ! -z $CINNAMON_VERSION ]; then
12if [ "$PCDM_SESSION" = "$DE_SESSION_NAME" ]; then
13DE_ACTIVE=1
14fi 
15
16}
17
18installed() {
19# Check via pc-metapkgmanager if it exists
20which pc-metapkgmanager >/dev/null 2>/dev/null
21if [ $? -eq 0 ] ; then
22  pc-metapkgmanager status Cinnamon | grep "is installed" >/dev/null
23  if [ $? -eq 0 ] ; then
24    DE_INSTALLED=1
25  fi
26else
27  which gnome-session-cinnamon >/dev/null 2>/dev/null
28  if [ $? -eq 0 ] ; then
29    DE_INSTALLED=1
30  fi
31fi
32
33}
Note: See TracBrowser for help on using the repository browser.