sidux.com
Menu

News

Give back
Last 3 Contributions
16-11-2008 10.00
02-11-2008 20.00
31-10-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ModestUser
Post subject: PATCH: add LXDE to fll-desktop  PostPosted: Oct 03, 2008 - 11:33 AM



Joined: Jan 07, 2008
Posts: 290

Status: Offline
This adds the option for an LXDE desktop to fll-desktop. When lxde is installed, it can be used with an desktop=lxde boot option.

* fll-desktop
- add LXDE desktop
- reordering entries

Code:
Index: fll-live-initscripts.fll-desktop.init
===================================================================
--- fll-live-initscripts.fll-desktop.init       (revision 20314)
+++ fll-live-initscripts.fll-desktop.init       (working copy)
@@ -69,7 +69,10 @@
 fi

 if [ -z "${DESKTOP}" ]; then
-       [ -x "/usr/bin/startfluxbox" ] && DESKTOP="fluxbox"     # fourth choice
+       [ -x "/usr/bin/icewm" ] && DESKTOP="icewm"              # sixth choice
+       [ -x "/usr/bin/startfluxbox" ] && DESKTOP="fluxbox"     # fifth choice
+       [ -x "/usr/bin/startlxde" ] && [ -x "/usr/bin/openbox" ] && \
+           DESKTOP="lxde"                                      # fourth choice
        [ -x "/usr/bin/xfwm4" ] && DESKTOP="xfce4"              # third choice
        [ -x "/usr/bin/metacity" ] && DESKTOP="gnome"           # second choice
        [ -x "/usr/bin/kwin" ] && DESKTOP="kde"                 # first choice, if installed and desktop= is empty
@@ -86,21 +89,24 @@
        log_daemon_msg "${NAME}"

        case "${DESKTOP}" in
-               kde)
-                       WM="/usr/bin/kwin"
+               flux*)
+                       WM="/usr/bin/startfluxbox"
                        ;;
                gnome)
                        WM="/usr/bin/metacity"
                        ;;
-               flux*)
-                       WM="/usr/bin/startfluxbox"
+               icewm)
+                       WM="/usr/bin/icewm"
                        ;;
+               kde)
+                       WM="/usr/bin/kwin"
+                       ;;
+               lxde)
+                       WM="/usr/bin/openbox"
+                       ;;
                xfce*)
                        WM="/usr/bin/xfwm4"
                        ;;
-               icewm)
-                       WM="/usr/bin/icewm"
-                       ;;
                *)
                        log_action_msg " desktop '${DESKTOP}' is not available"
                        log_end_msg 0
@@ -125,6 +131,9 @@
                        "/usr/bin/icewm")
                                XSESSION="IceWM"
                                ;;
+                       "/usr/bin/openbox")
+                               XSESSION="LXDE"
+                               ;;
                esac

                log_action_begin_msg " setting up window manager '${WM}'"
@@ -152,7 +161,7 @@
                echo "Error: argument '${1}' not supported" >&2
                exit 3
                ;;
-       kde|gnome|flux*|xfce*|icewm)
+       kde|gnome|flux*|xfce*|icewm|lxde)
                DESKTOP="${1}"
                do_start
                ;;
 
 View user's profile Send private message  
Reply with quote Back to top
kelmo
Post subject: RE: PATCH: add LXDE to fll-desktop  PostPosted: Oct 03, 2008 - 01:08 PM



Joined: Dec 19, 2006
Posts: 1029

Status: Offline
Thanks and committed:
http://lists.berlios.de/pipermail/fulls ... 17164.html

The patch applied with fuzz, please check the commit for error.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio