startx VS. slim login manager
startx
tux@slitaz:~$ cat .xsession
# ~/.xsession: Start X window session manually on your system (startx).
#
. $HOME/.config/slitaz/applications.conf
Xorg &
#xterm &
#xpad &
exec $WINDOW_MANAGER
tux@slitaz:~$ ps
[..]
2091 root 0:00 /sbin/getty 115200 38400 9600 4800 2400 ttyS0
2149 messageb 0:00 /usr/bin/dbus-daemon --system
2153 tux 0:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autos
2155 root 0:00 /usr/libexec/Xorg
2178 tux 0:00 pcmanfm --desktop
2179 tux 0:00 lxpanel --profile slitaz
2183 tux 0:00 dbus-launch --sh-syntax --exit-with-session
2184 tux 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --prin
2195 tux 0:00 /usr/libexec/menu-cache/menu-cached /home/tux/.cache/menu
2213 tux 0:00 sakura --sync --geometry 80x24 -t SliTaz next64
2215 tux 0:00 gnome-pty-helper
2216 tux 0:00 /bin/sh
2217 tux 0:00 ps
tux@slitaz:~$ pstree -p
init(1)-+-dbus-daemon(2149) |-dbus-daemon(2184) |-dbus-launch(2183) |-getty(2087) |-getty(2088) |-getty(2089) |-getty(2090) |-getty(2091) |-httpd(1945) |-klogd(1463) |-lxpanel(2179)-+-{gmain}(2187) | `-{menu-cache-io}(2196) |-menu-cached(2195)---{gmain}(2198) |-pcmanfm(2178)-+-{gmain}(2188) | |-{pool}(2222) | `-{pool}(2223) |-sakura(2213)-+-gnome-pty-helpe(2215) | |-sh(2216)---pstree(2221) | `-{gmain}(2214) |-sh(2084) |-sh(2083)---openbox(2153)---Xorg(2155)---{InputThread}(2169) |-syslogd(1442) |-udevd(1350) `-udhcpc(2005)tux@slitaz:~$
VS.
slim login manager
tux@slitaz:~$ cat .xinitrc
# ~/.xinitrc: Executed by Slim/LXDM login manager to startx X session.
# You can use F1 with Slim to change your window manager or configure
# it permanently with your personal applications.conf file.
#
. $HOME/.config/slitaz/applications.conf
tazbox mkmenu
[ "$1" ] && WINDOW_MANAGER="$1"
EXEC="exec ck-launch-session dbus-launch --sh-syntax --exit-with-session"
LOG="/dev/null" ; X=$LOG ; ERR=$X
case "$WINDOW_MANAGER" in openbox|lxde*|icewm*|xfce4|compiz|karmen|dwm|fluxbox*|razor*|mate*) $EXEC ${WINDOW_MANAGER%-session}-session ;; enlightenment) $EXEC enlightenment_start ;; kde) $EXEC startkde ;; lxqt) $EXEC startlxqt ;; *) $EXEC $WINDOW_MANAGER ;; esac 2>>$ERR >>$X
tux@slitaz:~$ ps
PID USER TIME COMMAND
1 root 0:13 init
[..]
2007 root 0:00 /sbin/udhcpc -b -T 1 -A 12 -i eth0 -p /var/run/udhcpc.eth
2039 messageb 0:00 /usr/bin/dbus-daemon --system
2148 root 0:00 /usr/bin/slim -d
2154 root 0:00 /usr/libexec/Xorg -auth /var/run/slim.auth vt07
2163 root 0:00 /usr/sbin/console-kit-daemon --no-daemon
2169 polkitd 0:00 /usr/lib/polkit-1/polkitd --no-debug
2174 tux 0:00 ck-launch-session dbus-launch --sh-syntax --exit-with-ses
2217 tux 0:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autos
2220 tux 0:00 dbus-launch --sh-syntax --exit-with-session openbox-sessi
2221 tux 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 6 --prin
2234 tux 0:00 /usr/lib/gvfsd
2239 tux 0:00 /usr/lib/gvfsd-fuse /var/run/user/1000/gvfs -f -o big_wri
2252 tux 0:00 pcmanfm --desktop
2253 tux 0:00 lxpanel --profile slitaz
2264 tux 0:00 /usr/lib/gvfsd-metadata
2271 tux 0:00 /usr/libexec/menu-cache/menu-cached /var/run/user/1000/me
2279 tux 0:00 /usr/lib/gvfs-udisks2-volume-monitor
2283 root 0:00 /usr/libexec/udisks2/udisksd
2309 tux 0:00 /usr/lib/gvfs-gphoto2-volume-monitor
2314 tux 0:00 /usr/lib/gvfs-mtp-volume-monitor
2319 tux 0:00 /usr/lib/gvfsd-trash --spawner :1.1 /org/gtk/gvfs/exec_sp
2325 root 0:00 /sbin/getty 38400 tty1
2326 root 0:00 /sbin/getty 38400 tty2
2327 root 0:00 /sbin/getty 38400 tty3
2328 root 0:00 /sbin/getty 38400 tty4
2329 root 0:00 /sbin/getty 38400 tty5
2330 root 0:00 /sbin/getty 38400 tty6
2331 root 0:00 /sbin/getty 115200 38400 9600 4800 2400 ttyS0
2346 tux 0:00 sakura --sync --geometry 80x24 -t SliTaz next64
2349 tux 0:00 gnome-pty-helper
2350 tux 0:00 /bin/sh
2354 tux 0:00 ps
tux@slitaz:~$ pstree -p
init(1)-+-console-kit-dae(2163)-+-{console-kit-dae}(2167) | |-{gdbus}(2166) | |-{gmain}(2164) | `-{vt_thread_start}(2170) |-dbus-daemon(2039) |-dbus-daemon(2221) |-dbus-launch(2220) |-getty(2325) |-getty(2326) |-getty(2327) |-getty(2328) |-getty(2329) |-getty(2330) |-getty(2331) |-gvfs-gphoto2-vo(2309)-+-{gdbus}(2312) | `-{gmain}(2310) |-gvfs-mtp-volume(2314)-+-{gdbus}(2317) | `-{gmain}(2315) |-gvfs-udisks2-vo(2279)-+-{gdbus}(2281) | `-{gmain}(2280) |-gvfsd(2234)-+-gvfsd-trash(2319)-+-{gdbus}(2321) | | `-{gmain}(2320) | |-{gdbus}(2236) | `-{gmain}(2235) |-gvfsd-fuse(2239)-+-{gdbus}(2244) | |-{gmain}(2243) | |-{gvfs-fuse-sub}(2249) | |-{gvfsd-fuse}(2241) | `-{gvfsd-fuse}(2242) |-gvfsd-metadata(2264)-+-{gdbus}(2266) | `-{gmain}(2265) |-httpd(1933) |-klogd(1465) |-lxpanel(2253)-+-{gdbus}(2258) | |-{gmain}(2257) | `-{menu-cache-io}(2272) |-menu-cached(2271)-+-{gdbus}(2277) | `-{gmain}(2276) |-pcmanfm(2252)-+-{gdbus}(2256) | |-{gmain}(2255) | |-{pool}(2358) | `-{pool}(2359) |-polkitd(2169)-+-{gdbus}(2178) | |-{gmain}(2177) | |-{polkitd}(2180) | `-{polkitd}(2182) |-sakura(2346)-+-gnome-pty-helpe(2349) | |-sh(2350)---pstree(2357) | |-{gdbus}(2348) | `-{gmain}(2347) |-slim(2148)-+-Xorg(2154)---{InputThread}(2161) | `-ck-launch-sessi(2174)---openbox(2217)-+-{gdbus}(2232) | `-{gmain}(2231) |-syslogd(1444) |-udevd(1352) |-udhcpc(2007) `-udisksd(2283)-+-{cleanup}(2306) |-{gdbus}(2286) |-{gmain}(2284) `-{probing-thread}(2287)tux@slitaz:~$