LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-23-2004, 01:16 AM   #1
imagreg
Member
 
Registered: Mar 2004
Distribution: Slackware 10.0
Posts: 76

Rep: Reputation: 15
Unhappy starting apps when fluxbox starts up


hi all...i just can't seem to be able to get apps up and running when fluxbox boots up. i have tried everything...from editing the .xinitrc...to creating an apps file...to creating a startup file...and finally editing /etc/X11/xinit/xinitrc.fluxbox. if anyone has gotten this to work please let me know. i looked at the other posts here but didn't find anything that worked. i have spent way too much time trying to get this to work. if you've done it please tell me what command you used and exactly where you put it. thanks a ton in advance! please save my sanity ;-)
 
Old 11-23-2004, 01:34 AM   #2
SocialEngineer
Member
 
Registered: May 2003
Distribution: Slackware
Posts: 236

Rep: Reputation: 30
Here is exactly what I did, assuming I remember to put all the details in.

First, I copied .xinitrc.fluxbox to my home directory for the user using fluxbox. I then renamed it to .xinitrc (actually, I made a link, because sometimes I switch WMs. For instance, I have been running BadWM for the past month - however, you don't need to do that necessarily).

Now, you need to edit .xinitrc.

#!/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

# Start the window manager:

exec /usr/local/bin/wmclockmon &
exec /usr/local/bin/wmcpuload &
#exec /usr/local/bin/wmmemmon &
exec /usr/local/bin/wmmemload &
exec /usr/local/bin/wmdiskmon -p /dev/hdb1 -p /dev/hdb5 &
exec /usr/local/bin/wmnetload &
exec /usr/local/bin/wmupmon &
#exec /usr/local/bin/fbpager -w &
exec /usr/local/bin/wmblob &
exec /usr/local/bin/wminet &
exec /home/will/apps/wmget dock&
exec /usr/X11R6/bin/fluxbox


That is what my .xinitrc looks like. Lines that I don't want to run are commented out with a #. Programs I want to run are prefixed by the word "exec", and followed by a & (to tell the system to run this in the background). I give the full path to the binary - I can't remember why, but I always have The most important thing to remember is to make sure all the stuff you want to run at the start of x is launched BEFORE the window manager.
 
Old 11-23-2004, 01:49 AM   #3
MylesCLin
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Slack 9.1 with slackware-current packages...
Posts: 164

Rep: Reputation: 30
Here's another way to do it.

insert this at the end of your .xinitrc:

startfluxbox & $WMPID
idesk &
wait $WMPID

it doesn't have to be idesk, just any apps you want to launch followed by a space and &
 
Old 11-23-2004, 10:48 AM   #4
imagreg
Member
 
Registered: Mar 2004
Distribution: Slackware 10.0
Posts: 76

Original Poster
Rep: Reputation: 15
thanks guys but i still can't get it to work for some reason. i know that the .xinitrc is executable because when i click on it fbpager and torsmo start right up. it seems to be being missed for some reason during the startup process though. really strange. do you have any ideas? thanks again in advance!

here is a copy of my .xinitrc

#!/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



# Start the window manager:
exec /usr/local/bin/torsmo &
exec /usr/bin/pbpager &
exec /usr/X11R6/bin/startfluxbox
 
Old 11-23-2004, 12:56 PM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
try this :

- create the file : ~/.fluxbox/startup
- fill it with :
Code:
/usr/local/bin/torsmo &
/usr/bin/pbpager &

exec /usr/X11R6/bin/fluxbox
chmod +x it and start X
 
Old 11-23-2004, 01:13 PM   #6
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
are you starting X via the console, or using a login manager (KDM/GDM/XDM)?
 
Old 11-23-2004, 01:29 PM   #7
imagreg
Member
 
Registered: Mar 2004
Distribution: Slackware 10.0
Posts: 76

Original Poster
Rep: Reputation: 15
i was using a login manager (kdm). i see now that if i change inittab back to run level 3 them my apps now start. thanks guys. is there any way to use a login manager and still have it run apps at startup? thanks again.
 
Old 11-23-2004, 03:37 PM   #8
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by imagreg
i was using a login manager (kdm). i see now that if i change inittab back to run level 3 them my apps now start. thanks guys. is there any way to use a login manager and still have it run apps at startup? thanks again.
the login managers (all of them?) read .xsession, or similarly-named file, as a config file I believe, and KDM has another config called kdmrc somewhere in the KDE directory tree. I haven't used it in a long time so I can't recall more specifics - but maybe try a search on those terms and see what you find....

EDIT: this may be helpful:

http://www.fluxbox.org/docbook/en/html/app-setup.html

http://www.fluxbox.org/docs/en/faq.php#startup

Last edited by Genesee; 11-23-2004 at 03:44 PM.
 
Old 11-23-2004, 11:47 PM   #9
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by imagreg
i was using a login manager (kdm). i see now that if i change inittab back to run level 3 them my apps now start. thanks guys. is there any way to use a login manager and still have it run apps at startup? thanks again.
imagreg -

looking through the startup scripts, I noticed there are at least 3 possibile Xsession files:

/etc/X11/xdm/Xsession
/etc/X11/gdm/Xsession
/opt/kde/share/config/kdm/Xsession

if you view them you'll notice each has this section:

Quote:
# These files (if they exist) are used to set up the X related environment. We used to
# exec .xsession at this location, but that can interfere with choosing a session type
# through XDM/KDM/GDM so it was moved to after a requested session is started. Since
# that means that .xsession might never be run at all when using XDM/KDM/GDM, support
# for the xprofile was added to allow a way for the user to customize the X environment.
if [ -r /etc/xprofile ]; then
source /etc/xprofile
fi
if [ -r ~/.xprofile ]; then
source ~/.xprofile
fi
so then a solution is to simply make a readable ~/.xprofile file containing a list of apps you want to autostart followed by ampersands:

gkrellm &
xmms &

and so on. it seems to work fine here using KDM, give it a shot.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
fluxbox starting apps twice on startup Skankpuss Linux - Software 2 11-06-2005 06:14 AM
Fluxbox starts with no font ivanatora Linux - Software 1 12-08-2004 03:28 AM
help! only fluxbox starts hacman Mandriva 2 05-10-2004 06:19 AM
apps exec when x starts snocked Slackware 4 08-07-2003 02:39 AM
How to starts FluxBox chem1 Linux - Software 2 05-09-2003 11:50 PM


All times are GMT -5. The time now is 11:34 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration