LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-22-2008, 03:13 PM   #1
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
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?
 
Old 05-22-2008, 03:32 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
What are you using for desktop?
Gnome: http://www.howtoforge.com/make-deskt...atically-gnome
KDE: Add a script to ~/.kde/Autostart/
 
Old 05-22-2008, 04:21 PM   #3
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
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.

Last edited by Jongi; 05-22-2008 at 05:05 PM.
 
Old 05-23-2008, 07:36 AM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
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
 
Old 07-26-2008, 05:37 PM   #5
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
Thanks for that makuyl. How would I go about starting it globally for all users?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java app starts with splashscrean --then-- death rbees Linux - Newbie 12 12-03-2006 04:12 PM
Starting a program whenever X starts cwwilson721 Slackware 7 04-02-2006 10:52 PM
Automatically cast 'export LD_ASSUME_KERNEL' before an app starts tbfirefox Linux - General 1 02-01-2005 08:59 PM
starting apps when fluxbox starts up imagreg Slackware 8 11-23-2004 10:47 PM
Starting xcompmgr right after x.org starts... UnixPhreak1911 Linux - Games 2 10-16-2004 01:36 PM


All times are GMT -5. The time now is 02:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration