wok-next rev 12416
Up and improve lxde meta package (we have now lxde-session and lxde-logout script)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 20 18:25:24 2012 +0200 (2012-04-20) |
parents | 6aedcb2651c7 |
children | e20ef155330b |
files | lxde/receipt lxde/stuff/lxde-logout lxde/stuff/lxde-logout.desktop lxde/stuff/lxde-session lxde/stuff/xsessions/LXDE.desktop |
line diff
1.1 --- a/lxde/receipt Fri Apr 20 18:24:21 2012 +0200 1.2 +++ b/lxde/receipt Fri Apr 20 18:25:24 2012 +0200 1.3 @@ -1,16 +1,24 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="lxde" 1.7 -VERSION="0.3" 1.8 +VERSION="0.3.2.1" 1.9 CATEGORY="meta" 1.10 -SHORT_DESC="LXDE desktop environement meta package." 1.11 +SHORT_DESC="LXDE desktop environement meta package with SliTaz integration." 1.12 MAINTAINER="pankso@slitaz.org" 1.13 -DEPENDS="openbox obconf pcmanfm lxpanel lxtask lxappearance gpicview leafpad" 1.14 WEB_SITE="http://lxde.org/" 1.15 TAGS="wm desktop" 1.16 +SUGGESTED="lxterminal lxdm" 1.17 + 1.18 +DEPENDS="xorg-libX11 gtk+ pcmanfm lxpanel lxtask lxappearance lxsession 1.19 +lxsession-edit lxrandr openbox obconf viewnior leafpad slitaz-configs" 1.20 1.21 # Rules to gen a SliTaz package suitable for Tazpkg. 1.22 genpkg_rules() 1.23 { 1.24 - mkdir -p $fs/usr 1.25 + mkdir -p $fs/usr/bin $fs/usr/share/applications 1.26 + install -m 0755 $stuff/lxde-session $fs/usr/bin 1.27 + install -m 0755 $stuff/lxde-logout $fs/usr/bin 1.28 + cp -a $stuff/xsessions $fs/usr/share 1.29 + cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications 1.30 + chown -R 0.0 $fs 1.31 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/lxde/stuff/lxde-logout Fri Apr 20 18:25:24 2012 +0200 2.3 @@ -0,0 +1,12 @@ 2.4 +#!/bin/sh 2.5 +# 2.6 +# SliTaz LXDE Logout. 2.7 +# 2.8 + 2.9 +case "$1" in 2.10 + *.png|*.jpg) banner="$1" ;; 2.11 + --*|help|usage) echo "Usage: $(basename $0) [image]" && exit 0 ;; 2.12 + *) banner="/usr/share/images/slitaz-banner.png" ;; 2.13 +esac 2.14 + 2.15 +lxsession-logout --banner "$banner" --side=top
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/lxde/stuff/lxde-logout.desktop Fri Apr 20 18:25:24 2012 +0200 3.3 @@ -0,0 +1,11 @@ 3.4 +[Desktop Entry] 3.5 +Type=Application 3.6 +Icon=slitaz-logout 3.7 +Exec=lxde-logout 3.8 +Name=LXSession Log Out 3.9 +Name[fr]=Déconnexion de LXSession 3.10 +Name[it]=Esci LXSession 3.11 +Name[pt_BR]=Encerrar LXSessão 3.12 +Name[ru]=Выйти LXSession 3.13 +Categories=System; 3.14 +OnlyShowIn=LXDE;
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/lxde/stuff/lxde-session Fri Apr 20 18:25:24 2012 +0200 4.3 @@ -0,0 +1,22 @@ 4.4 +#!/bin/sh 4.5 +# 4.6 +# Start LXDE on SliTaz. We start dbus, make sure config files exist 4.7 +# and then start lxsession. 4.8 +# 4.9 + 4.10 +export XDG_CONFIG_HOME="$HOME/.config" 4.11 + 4.12 +# Start DBUS session. 4.13 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then 4.14 + dbus-launch --sh-syntax --exit-with-session & 4.15 +fi 4.16 + 4.17 +# PCmanFM config file. NOTE: will change with new PCmanFM 4.18 +if [ ! -f "$XDG_CONFIG_HOME/pcmanfm/main.lxde" ]; then 4.19 + mkdir -p $XDG_CONFIG_HOME/pcmanfm 4.20 + cp /usr/share/slitaz/lxde/pcmanfm.main \ 4.21 + $XDG_CONFIG_HOME/pcmanfm/main.lxde 4.22 +fi 4.23 + 4.24 +# Start LXSession. 4.25 +exec lxsession -s LXDE -e LXDE