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

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

Fix current DE detection (using KDE variable now)

  • Property mode set to 100644
File size: 788 bytes
Line 
1DE_NAME="KDE"
2XDG="YES"
3
4DE_SU="kdesu %s"
5DE_TERMINAL="konsole"
6DE_TERMINAL_TITLE="--caption"
7DE_TERMINAL_COMMAND="-e"
8DE_TERMINAL_SEPARATE_ARGS="YES"
9DE_FILEMAN="dolphin %s"
10DE_SESSION_NAME="KDE"
11
12active() {
13
14 if [ -n "$KDE_SESSION_UID" ] || [ "${XDG_CURRENT_DESKTOP}" == "KDE" ] || [ "$DE_SESSION_NAME" == "$PCDM_SESSION" ] ; then
15    DE_ACTIVE=1
16 fi
17
18}
19
20
21installed()
22{
23# Check via pc-metapkgmanager if it exists
24which pc-metapkgmanager >/dev/null 2>/dev/null
25if [ $? -eq 0 ] ; then
26  pc-metapkgmanager status KDE | grep "is installed" >/dev/null
27  if [ $? -eq 0 ] ; then
28    DE_INSTALLED=1
29  fi
30else
31  which startkde4 >/dev/null 2>/dev/null
32  if [ $? -eq 0 ] ; then
33    DE_INSTALLED=1
34  fi
35  which startkde >/dev/null 2>/dev/null
36  if [ $? -eq 0 ] ; then
37    DE_INSTALLED=1
38  fi
39fi
40
41}
Note: See TracBrowser for help on using the repository browser.