LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-25-2004, 03:11 PM   #1
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Rep: Reputation: 15
How to start program on X login


Im using fluxbox and id like my dockapps and fbdesk to be run automatically when i log in.

How can this be done?

Thanks.
 
Old 07-25-2004, 03:17 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
man fluxbox
-I
/startup
n
(press n a few times)



Cheers,
Tink
 
Old 07-25-2004, 03:41 PM   #3
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Original Poster
Rep: Reputation: 15
yea i was thinking about the .xinitrc file, i dont have one so i created one, but how should it look?

I have the following:

#!/bin/sh
wmwave &
wmbattery &
fbdesk &
 
Old 07-25-2004, 04:03 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
You definitely miss the call that starts the window-manager
here ... have a look at the system xinitrc files in /etc/X11/xinit



Cheers,
Tink
 
Old 07-25-2004, 04:34 PM   #5
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Original Poster
Rep: Reputation: 15
My /etc/X11/xinit directory contains:

README.Xmodmap xinitrc.fluxbox xinitrc.gnome xinitrc.wmaker
xinitrc xinitrc.fvwm2 xinitrc.kde xinitrc.xfce
xinitrc.blackbox xinitrc.fvwm95 xinitrc.twm

I added the lines from my initial post into the xinitrc.fluxbox file, nothing happens at login though.
 
Old 07-25-2004, 04:58 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Using startx or a graphical login?


Cheers,
Tink
 
Old 07-26-2004, 01:33 PM   #7
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Original Poster
Rep: Reputation: 15
Graphical login, GDM.

Thanks.
 
Old 07-26-2004, 03:47 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Sorry, I don't use (know) gnome/gdm ... maybe someone
else can tell you what to do.


Cheers,
Tink
 
Old 07-28-2004, 03:34 PM   #9
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Original Poster
Rep: Reputation: 15
So the startup of programs after graphical login is controlled by gdm and not a generic X thing?

Can anyone help?

Thanks.
 
Old 07-28-2004, 03:38 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
I don't know how gdm interacts with the xserver, that's all ;)

For xdm you'd use ~/.xsession to define what's supposed
to be running on starting up your xsession.


But why bother if fluxbox offers a means to achieve that
anyway? :)
Code:
  [submenu] (Startup)
        [exec] (root-tail) {/home/tink/bin/roottail.sh&}
        [exec] (tpb) {/usr/local/bin/tpb& }
        [exec] (gkrellm) {gkrellm }
        [exec] (lavaps) { lavaps }
        [exec] (wmweather) {weather.sh}
        [exec] (wmxmms) {wmxmms -t}
        [exec] (wmBinClock) {wmBinClock}
  [end]
That's what mine looks like ...

Cheers,
Tink

Last edited by Tinkster; 09-08-2005 at 03:21 AM.
 
Old 07-28-2004, 05:14 PM   #11
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Original Poster
Rep: Reputation: 15
Sorry, is that your .xsession file or your fluxbox menu file? I tried adding something similar to the latter but still no auto-start!
 
Old 07-28-2004, 05:45 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
That's my flux menu ...

and works well here ... odd.



Cheers,
Tink
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
start gui based program after user login shahidawan Linux - General 9 07-27-2005 09:46 PM
i don't want the login program alaios Linux - General 6 08-10-2004 03:09 PM
Program will not start godders48 Linux - Software 4 10-05-2003 06:10 AM
start program killi Slackware 8 05-22-2003 05:08 PM


All times are GMT -5. The time now is 05:00 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