[K12OSN] Found Something! re: CPU usage 4.1

Eric Harrison eharrison at mail.mesd.k12.or.us
Tue Sep 14 06:10:45 UTC 2004


On Mon, 13 Sep 2004, David Trask wrote:

>"Support list for opensource software in schools." <k12osn at redhat.com>
>writes:
>>This doesn't really effect me, because I have REALLY hacked the xdm 
>>stuff so that my users don't even see a choice -- but if you change that 
>>to icewm instead of icewm-session, things like the system tray icons 
>>don't work.  It's a really nice feature of icewm, for programs like 
>>gaim, etc. that use the system tray.
>
>This could be true....we don't use any apps that use the system tray so I
>wouldn't have noticed that.  It's a simple change though....in
>/etc/X11/gdm/Sessions....my IceWM session reads like this....
>########################
>
>#!/bin/bash
>xhost +10.0.15.253
>if [ -f /etc/profile.d/ltsp-esound.sh ]
>then
>        . /etc/profile.d/ltsp-esound.sh
>fi
>/usr/libexec/gnome-settings-daemon &
>/usr/bin/nautilus &
>#exec /usr/bin/icewm-session
>exec /usr/bin/icewm

I'm working on something like this... a /etc/sysconfig/icewm file
containing:

	ICEWM_NAUTILUS=YES
	ICEWM_SESSION=YES

and then the /etc/X11/gdm/Sessions/IceWM would contain:

	#!/bin/bash
	if [ -f /etc/profile.d/ltsp-esound.sh ]
	then
	        . /etc/profile.d/ltsp-esound.sh
	fi
	if [ -f /etc/sysconfig/icewm ]
	then
	        . /etc/sysconfig/icewm
	fi
	if [ "$ICEWM_NAUTILUS" = "YES" ]
	then
		/usr/libexec/gnome-settings-daemon &
		/usr/bin/nautilus &
	fi
	if [ "$ICEWM_SESSION" = "YES" ]
	then
		exec /usr/bin/icewm-session
	else
		exec /usr/bin/icewm
	fi

I think that would do the trick for making it easy to adjust
how much resources the IceWM session type uses. Just edit
/etc/sysconfig/icewm to turn various features on or off.

-Eric





More information about the K12OSN mailing list