I'm trying to start an application (qBittorrent) as a regular user, on the background (&) every time I enter runlevel 5 (graphical environment) using the script rc.local:
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
su sleep -c "qbittorrent %f"
#I tried also with:
#source /usr/bin/qbittorrent &
partial $ls /etc/rc.d/rc5.d/
lrwxrwxrwx 1 root root 11 2009-04-24 00:42 S99local -> ../rc.local
Also, if I run the command:
alone in a xterm window, it starts the application correctly.
What am I doing wrong?
Thanks in advance dudes,