If the program works by clicking the icon, it should also work from an X terminal (or linux terminal if it is not an interactive/graphical program) by running the command listed in the icon file.
One thing to check is if you actually used the correct command. After reading what you posted, I notice a typo in your command ("/usr.local..." should be "/usr/local..."). If you made that mistake here, you may have made the same mistake before. Also be sure to add "&" after most commands in bootlocal.sh and .xinitrc. Failure to do this may result in failure of programs to run when they are expected. Does your command require root privilege? If so, the command should be preceded by "sudo". Finally, when using .xinitrc make sure that user commands are adding BEFORE the section that starts the window manager. That would be the part that begins with "case $DESKTOP in". This is not a strict rule if you know shell scripting well, but it's a good thing to stick to for now.Ooops, typo here, not when I type it in the terminal, I've typed it a million times! So I'm still fummoxed! I have tried putting 'sudo' before the command though I haven't tried the '&' sign at the end of the command. Is VNC an interactive and graphical program? If it is, I guess there is another proceedure to get it to boot at startup?
I do feel I have hi-jacked this thread! Please forgive me! na, was the same question for the most part. Moslty the same answer anyway.
As for interactive, only in so far as it needs X running. All this means is you are going to need to put it in you .xinitrc file. As Mikeshaw said, make sure it's before the "case $DESKTOP in" part.
Also, I think that VNC should be /usr/bin/vncviewer unless you are trying to start the server app. Not sure about that one, as I don't ahve it installed.
Quote (Felson @ April 04 2007,17:58)
/opt/bootlocal.sh works for 90% of what you will want.
Failing that, you can use ~/.xinitrc If it is something you need to start after X starts.
Have fiddled about BOINC needs to go into the .xinitrc file using the following...
/home/dsl/BOINC/boincmgr &>/dev/null &
putting it in the bootcal file justs results in a gtk error on startup.
Now running 8 DSL machines with BOINC starting on bootup... I think I'll call them the Felson Array... sounds better than SETI Farm LOL glad I could help Next Page...
original here.