修改后的样子如(1 至 11 行):
#!/bin/sh
#
# DEFAULT KDE STARTUP SCRIPT ( 3.94.00 (KDE 4.0 Beta3) )
#
export LD_LIBRARY_PATH=/opt/kde4/lib
export KDEDIRS=/opt/kde4
export PATH=/opt/kde4/bin/:$PATH
export KDEHOME=~/.kde4
# When the X server dies we get a HUP signal from xinit. We must ignore it
# because we still need to do some cleanup.
trap 'echo GOT SIGHUP' HUP