In 13.1, I added these lines to /etc/rc.d/rc.local
Code:
su - g -c startx
firefox
xrvt
jedit
kwrite
Everything starts except jedit. Yet when I put jedit in at the terminal, it starts normally.
But jedit in rc.local does do something, it mutes all sounds for all users.
Googling the problem produced only the ideas that $JAVA_HOME or $PATH was the problem. But I don't believe that is so in this case:
Code:
root@darkstar:~# echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/java/bin:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin
root@darkstar:~# echo $JAVA_HOME
/usr/lib/java
root@darkstar:~# su g
g@darkstar:/root$ echo $PATH
/usr/local/bin:/bin:/usr/bin
g@darkstar:/root$ echo $JAVA_HOME
/usr/lib/java
g@darkstar:/root$
But even if it were, why should the command to start Jedit produce different actions depending on whether it is executed in a script or at a terminal?