source: src-sh/de-info/de-profiles/xfce.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: 688 bytes
Line 
1#!/bin/sh
2DE_NAME="XFCE"
3XDG="YES"
4DE_SU="pc-su %s"
5DE_FILEMAN="thunar %s"
6DE_TERMINAL="xfce4-terminal"
7DE_TERMINAL_TITLE="-T"
8DE_TERMINAL_COMMAND="-e"
9DE_SESSION_NAME="XFCE"
10
11active() {
12if [ "$PCDM_SESSION" = "$DE_SESSION_NAME" ]; then
13DE_ACTIVE=1
14fi 
15
16}
17
18installed()
19{
20# Check via pc-metapkgmanager if it exists
21which pc-metapkgmanager >/dev/null 2>/dev/null
22if [ $? -eq 0 ] ; then
23  pc-metapkgmanager status XFCE | grep "is installed">/dev/null
24  if [ $? -eq 0 ] ; then
25    DE_INSTALLED=1
26  fi
27else
28  which startxfce4 >/dev/null 2>/dev/null
29  if [ $? -eq 0 ] ; then
30    DE_INSTALLED=1
31  fi
32  which startxfce >/dev/null 2>/dev/null
33  if [ $? -eq 0 ] ; then
34    DE_INSTALLED=1
35  fi
36fi
37}
Note: See TracBrowser for help on using the repository browser.