LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-20-2004, 09:52 AM   #1
Lucinda
Member
 
Registered: May 2004
Location: Atlanta, GA
Distribution: Slackware Current
Posts: 54

Rep: Reputation: 15
How to Autostart Apps in Fluxbox?


I'm just learning to use Fluxbox 0.1.14 and I'm wondering how to start autostart apps? I'm running Slackware -current and my /etc/X11/xinit/Xinitrc.fluxbox file is as follows:

Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

gkrellm -w
gdesklets &
wmxmms &
wmdrawer &
wmpop &


# Start the window manager:
exec /usr/X11R6/bin/fluxbox
I can't get the file to automatically execute, but strangely enough, if I open rox-filer and then click once on this file when it is displayed in the directory list, I get gkrellm to run (but none of the subsequent apps are appearing on my desktop -- just gkrellm). How can I get the apps to automatically execute?

Thanks.
 
Old 06-20-2004, 09:59 AM   #2
isl01jbe
LQ Newbie
 
Registered: May 2004
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
use .xinitrc instead.

put the contents of Xinitrc.fluxbox into the .xinitrc file located in your home directory. if it doesn't exist, create it. that should solve the problem
 
Old 06-20-2004, 10:06 AM   #3
Lucinda
Member
 
Registered: May 2004
Location: Atlanta, GA
Distribution: Slackware Current
Posts: 54

Original Poster
Rep: Reputation: 15
Yeah, good point. I just did that and then rebooted and it still didn't work. However, I can get the file to work if I run /home/lucinda/.xinitrc in a command line. So how do I get it to run automatically?

Maybe the problem is that I am running at runlevel 4, so I get a graphical interface from which I choose my desktop (in this case, fluxbox). Maybe .xinitrc only works at run level 3? Is there someway to invoke the file after I log in to fluxbox via the graphical log in?

Last edited by Lucinda; 06-20-2004 at 10:14 AM.
 
Old 06-20-2004, 10:17 AM   #4
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
Add this to the top of your ~/.fluxbox/apps file:

Quote:
[startup] {gkrellm -w}
[startup] {gdesklets}
[startup] {~/.slit}
And make a file ~/.slit that contains:

Quote:
#!/bin/sh
wmxmms &
wmdrawer &
wmpop &
And run "chmod +x ~/.slit".

You don't have to make the slit file if you don't want to, and put it in the apps file as well, but I like to do that for organization
 
Old 06-20-2004, 10:34 AM   #5
Lucinda
Member
 
Registered: May 2004
Location: Atlanta, GA
Distribution: Slackware Current
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks, I tried your suggestion but couldn't get it to work. Maybe flux only recognizes the app file in newer versions of flux? I'm using 0.1.14. How does flux know to look in that file?
 
Old 06-20-2004, 01:59 PM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
AFAIK 'apps' only works in the devel flux and xinitrc only works with 'startx' in runlevel 3. I *think* '~/.Xsessions' is the file you want for runlevel 4 but, really, 3 is better. Makes it easier to deal with if you encounter problems with X, makes it easier to install X-related drivers (like nVidia), makes it easier to do a lot. Such as initializing apps with .xinitrc. Plus you see the command line every time you boot up. All this for the low, low price of typing 'startx'.

-- Oh, and maybe most importantly, no 'display manager' structure getting in the way of things. That's a whole 'nother app/subsytem that can be chucked.

Last edited by slakmagik; 06-20-2004 at 02:01 PM.
 
Old 06-20-2004, 02:08 PM   #7
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Re: How to Autostart Apps in Fluxbox?

Quote:
Originally posted by Lucinda
if I open rox-filer and then click once on this file when it is displayed in the directory list, I get gkrellm to run (but none of the subsequent apps are appearing on my desktop -- just gkrellm). How can I get the apps to automatically execute?

gkrellm -w
gdesklets &
wmxmms &
wmdrawer &
wmpop &
Notice the ampersand after each of the other apps. Gkrellm should have one as well...this runs it as a background process and allows the xinit script to continue.
 
Old 06-20-2004, 02:17 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I'm glad absent ampersands aren't snakes. Geez.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
fluxbox: apps in toolbar synaptical Linux - Software 3 10-22-2004 02:18 PM
Gnome autostart apps? chunlee Linux - Software 4 10-15-2004 07:08 AM
Apps for fluxbox slit unholy Linux - Software 7 12-04-2003 07:21 PM
Fluxbox With ROX apps Oraee Linux - General 3 09-08-2002 04:53 PM
Fluxbox +executing apps Bouddha Linux - Software 0 08-05-2002 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration