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