how to start an application using the rc.local init script?
Hi guys,
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: /etc/rc.d/rc.local: Code:
#!/bin/sh Code:
... Code:
$qbittorrent %f What am I doing wrong? Thanks in advance dudes, sl33p |
You're trying to run an application before a user owned environment is up.
Either resort to starting the torrent once you're logged in, or use a command line based client. Cheers, Tink |
Quote:
You mean by "resort to starting the torrent once you're logged in", by running it in a login script, like /etc/.bashrc ?? sl33p |
From an autorun feature, e.g. KDE's autostart directory. That will depend on your
DE/WM ... Cheers, Tink |
Quote:
According to GNOME's documentation, this directory is ~/.config/autostart (user-specific) and /etc/xdg/autostart (system-wide). Now I'm at work, so when I get home, I'll try it out on my (way better) linux box. ;) Regards, sl33p |
All times are GMT -5. The time now is 06:17 AM. |