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

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

Fix current DE detection (using KDE variable now)

  • Property mode set to 100644
File size: 595 bytes
Line 
1DE_NAME="Mate"
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="MATE"
9
10active() {
11if [ "$PCDM_SESSION" = "$DE_SESSION_NAME" ]; then
12DE_ACTIVE=1
13fi 
14
15}
16
17installed() {
18# Check via pc-metapkgmanager if it exists
19which pc-metapkgmanager >/dev/null 2>/dev/null
20if [ $? -eq 0 ] ; then
21  pc-metapkgmanager status Mate | grep "is installed" >/dev/null
22  if [ $? -eq 0 ] ; then
23    DE_INSTALLED=1
24  fi
25else
26  which mate-session >/dev/null 2>/dev/null
27  if [ $? -eq 0 ] ; then
28    DE_INSTALLED=1
29  fi
30fi
31
32}
Note: See TracBrowser for help on using the repository browser.