HD Install :: .xinitrc not running script



I am almost done.. .but I can't get my .xinitrc script to run my script to start the slide show for my digital picture frame project.  The script works, when I run it from a shell window, it works fine... just does not seem to want to run from .xinitrc.

Below is the .xinitrc script... I have moved the line that calls the script I want to run,/mnt/hda1/mydsl/scripts/cron_start_frame.sh many different places (before and after the call to start fluxbox), I have put in the full path name, tried running it from the ramdisk home directory, from the hard drive, but the results are the same... no go.

the torsmo command seems to be upset that my laptop battery is dysfunctional, as it gave me an error, so I commented it out..... although I am not sure what that line does.

Any suggestions?  


# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP="$(getoption.lua $HOME/.desktop wm)"
ICONS="$(getoption.lua $HOME/.desktop icons)"

umix -lf .umix 2>/dev/null

[ -f .mouse_config ] && sh .mouse_config &

/etc/init.d/dsl-functions

# For non-US Keyboards
if [ ${KEYTABLE:0:2} != "us" ]; then
 xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi
if [ "$ICONS" == 1 ]; then
 for x in `ls -1 .xtdesktop/*.hide 2>/dev/null`; do rm -f ${x%.*}; done
 iconsnap.lua &>/dev/null &
 xtdesk.sh
fi
#if egrep -qv lowram /proc/cmdline 2>/dev/null; then
#fi

#torsmo 2 &
#>/dev/null &
# dillo /usr/share/doc/dsl/getting_started.html &>/dev/null
/mnt/hda1/mydsl/scripts/cron_start_frame.sh &
# xset s off
case $DESKTOP in
 fluxbox )
   fluxter &>/dev/null &
   wmswallow -geometry 70x80 docked  docked.lua &
   exec fluxbox 2 &>/dev/null  
 ;;
 jwm )
   ./.background
   sleep 2
   exec jwm 2>/dev/null
 ;;
 * )
#  torsmo 2>/dev/null &
 exec fluxbox 2 &
# >/dev/null
 ;;
esac

I'm guessing it's not launching because /mnt/hda1 could possibly be not mounted yet?

Quote
...many different places (before and after the call to start fluxbox)...
Has to be before

Quote
tried running it from the ramdisk home directory
If you do it this way, make sure you have it saved i.e. in backup, and restored.

Also, your .xinitrc is a bit messed up. Instead of
Quote
exec fluxbox 2 &
# >/dev/null
it should be "fluxbox 2>/dev/null" though I don't think that should affect anything

Quote (^thehatsrule^ @ Oct. 27 2007,23:08)
Also, your .xinitrc is a bit messed up. Instead of
Quote
exec fluxbox 2 &
# >/dev/null
it should be "fluxbox 2>/dev/null" though I don't think that should affect anything

...same error after 'fluxbox )'

It looks like this was edited, so maybe "fluxter -w &>/dev/null &" ?
(that's how it is on my copy)

Yes, the script is edited and now messed up a bit.. I had removed the >null parts thinking maybe it would show an error message (if there was one ) so that I could find the problem.

hda1 is already mounted by bootlocal.sh

Code Sample
/mnt/hda1/mydsl/scripts/cron_start_frame.sh &
Is this a graphical or non-graphical application? It's possible that it actually is running, but since it's being run directly from .xinitrc maybe it's putting everything out to tty1

Try this:
Code Sample
aterm -e /mnt/hda1/mydsl/scripts/cron_start_frame.sh &

Next Page...
original here.