source: src-sh/de-info/de-profiles/kde.profile @ 9dbaefd6

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 9dbaefd6 was 9dbaefd6, checked in by Ken Moore <ken@…>, 15 months ago

Add another check for if the KDE desktop is running to de-info

  • Property mode set to 100644
File size: 716 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"
10
11active() {
12
13 if [ -n "$KDE_SESSION_UID" ] || [ "${XDG_CURRENT_DESKTOP}" == "KDE" ] ; then
14    DE_ACTIVE=1
15 fi
16
17}
18
19
20installed()
21{
22# Check via pc-metapkgmanager if it exists
23which pc-metapkgmanager >/dev/null 2>/dev/null
24if [ $? -eq 0 ] ; then
25  pc-metapkgmanager status KDE | grep installed >/dev/null
26  if [ $? -eq 0 ] ; then
27    DE_INSTALLED=1
28  fi
29else
30  which startkde4 >/dev/null 2>/dev/null
31  if [ $? -eq 0 ] ; then
32    DE_INSTALLED=1
33  fi
34  which startkde >/dev/null 2>/dev/null
35  if [ $? -eq 0 ] ; then
36    DE_INSTALLED=1
37  fi
38fi
39
40}
Note: See TracBrowser for help on using the repository browser.