LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Starting an app when x starts (https://www.linuxquestions.org/questions/debian-26/starting-an-app-when-x-starts-644102/)

Jongi 05-22-2008 03:13 PM

Starting an app when x starts
 
I've mentioned this issue in another thread I started about rc.local. I thought because it has now become an issue specific to Debian I would start a new thread in the Debian section.

Essentially when I am logged in in X, I can run the following without issue: /usr/bin/hellanzb -D

The thing is that it needs lib-notify to run. So it can't run by being put in rc.local. I have put that command in the following files without success:

Code:

/etc/X11/Xsession
~/.xinitrc
/etc/X11/xinit/xinitrc

The closest I got it to work was by putting the line in ~/.xsession. However when the system boots, it comes up to a login screen. When I enter my credentials it produces the login screen again. If however I then choose to go into the terminal, the process is running. But then I can't get into X.

Any ideas?

makuyl 05-22-2008 03:32 PM

What are you using for desktop?
Gnome: http://www.howtoforge.com/make-deskt...atically-gnome
KDE: Add a script to ~/.kde/Autostart/

Jongi 05-22-2008 04:21 PM

I interchange between KDE, Gnome and Xfce. Which is why I was looking for a general X solution.I use kde mainly and I am trying to avoid the Autostart route.

makuyl 05-23-2008 07:36 AM

So what did you put in ~/.xsession? Something like
Code:

/usr/bin/hellanzb -D &
if [ -x /usr/bin/x-session-manager ]; then
exec x-session-manager
elif [ -x /usr/bin/x-window-manager ]; then
exec x-window-manager

If you know you use, say x-session-manager, try with just:
Code:

/usr/bin/hellanzb -D &
exec x-session-manager


Jongi 07-26-2008 05:37 PM

Thanks for that makuyl. How would I go about starting it globally for all users?


All times are GMT -5. The time now is 10:32 AM.