Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-23-2004, 11:31 PM   #1
Registered: Nov 2003
Location: npr, fl, usa
Distribution: suse 9.3 / xp pro sp2
Posts: 226

Rep: Reputation: 30
fluxbox programs

how can i make certain programs start automaticly when i log into fluxbox. it's the only way i can think of to get my dockapps to automaticly be there when i log in. i don't feel like having to run each and everyone of them's command.(them's is a new word i just made up today)
Old 02-24-2004, 12:25 AM   #2
Registered: Nov 2003
Posts: 53

Rep: Reputation: 15
Your not reading ANY documentation before coming here are you? I think there's 2-3 flux-related questions you've posted answered in the man page for fluxbox. =|

man fluxbox.
Old 02-24-2004, 03:30 AM   #3
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
These are words that people have made up over the past few years to explain how Fluxbox works:

Check out the section titled 'Setting up .xinitrc/.xsession'

--- Cerbere
Old 02-24-2004, 07:43 AM   #4
Registered: Nov 2003
Location: npr, fl, usa
Distribution: suse 9.3 / xp pro sp2
Posts: 226

Original Poster
Rep: Reputation: 30
i have read all the docnumentation, and have edited .xinitrc (never seen or heard of .xsession before) and non of it worked. srry if it seems that i'm depending on u guys, but its just that nothing else has worked. and i think it might be because I've installed flux from src on a computer that has never had flux before. i'm wondering if there is something else that needs to be installed or running...thnx
Old 02-24-2004, 10:12 AM   #5
Registered: Jun 2002
Location: White House, Washignton DC
Distribution: Red Hat 9
Posts: 270

Rep: Reputation: 30
Ambelos, do not be intimidated by what people say on this forum. If you cannot understand after reading the documentation, come back again and again and again. You will always find people willing to help you without being irritating

Hope this helps....
Old 02-24-2004, 02:48 PM   #6
LQ Newbie
Registered: Jan 2002
Posts: 7

Rep: Reputation: 0
What version of fluixbox are you running? As long as you have the stuff in ~/.xsession it should work. See my sample ~/.xsession

# turn off screen blanking and turn on energy star features
#xset s off
#xset dpms 600 60 60

# add my optional fonts to the font path
#xset +fp "$X_FONTPATH"
#xset fp rehash

# export the current environment, in case it needs to be debugged
env > ~/.xenv

# window manager
/usr/local/bin/fluxbox & wmpid=$!

# desktop pager
fluxter -w &
# system info
gkrellm -w &
# xmms controls
#wmxmms &
# clipboard app
klipper &
# notes app
knotes &
# remineder app
kteatime &
# aol messenger
#gaim &
# yahoo messenger
ymessenger &
# Microsoft messenger
#kmess &
# super im client
kopete > /dev/null 2>&1 &
# organizer
korganizer &
# biff imap mailbox
tkbiff -imap &
# mixer applet
#kmix &# top
xterm -e top &
# console
konsole &

# HANG POINT - wait for window manager to exit
wait $wmpid

# restore the x fontpath
xset fp default

#bbrun &
# clock
#wmCalClock &

You can combine this with ~/.fluxbox/slistlist to order the way apps appear in slit.

Old 03-25-2004, 08:19 AM   #7
Registered: Nov 2003
Location: npr, fl, usa
Distribution: suse 9.3 / xp pro sp2
Posts: 226

Original Poster
Rep: Reputation: 30
ok, so, this is how i'm trying to exec these programs:

# xmms controls
wmxmms &

but still, nothing starts when flux starts. is the file supposed to be .xsession, or .Xsession?

from what i can tell, these commands are the same i would use when trying to exec these programs from the terminal, right? is there another file, then, that i should be putting these into? i'm using ~/.xsession.

Old 03-25-2004, 10:33 AM   #8
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Rep: Reputation: 35
hi ambelos,

as far as I can see you're running RH 9.

If you haven't changed the initial init level when you installed RH, you should be having an init:5 which loads up GDM per default.

How do you start up fluxbox? Are you able to select it as a Session when you are booted up with the graphical interface? Have you created a file in /etc/X11/gdm/Sessions/ ?

The reason I'm asking is this is how I'm doing it.

I'm running RH 9.0 - init level 5 which loads up GDM per default

I had to create a Session file /etc/X11/gdm/Sessions/fluxbox in order to be able to select it via gdm

this is my fluxbox session file:


amsn &
gkrellm &
xscreensaver -no-splash &
exec /usr/local/bin/fluxbox
the location of your fluxbox may vary depending on where you installed it to

so what happens is the following:

- When I start my system, GDM loads up and asks me what sessions I would like to run
- I choose fluxbox (which is also my default session)
- It loads the /etc/X11/gdm/Sessions/fluxbox file which starts amsn, gkrellm, the xscreensaver -no-splash AND then fluxbox itself

In your case you could add wmxmms & before it's supposed to load up fluxbox

hope this helps!
Old 03-25-2004, 10:39 AM   #9
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
In the development versions of Fluxbox (0.9x), there is a different way of starting applications. You can create a ~/.fluxbox/apps file and start programs from there. Check out the fluxbox development version faq for the syntax of the file, but it is similar to the syntax used in the menu file.
Old 11-27-2004, 02:48 PM   #10
LQ Newbie
Registered: Mar 2003
Location: Owen Sound, Canada
Distribution: debian
Posts: 9

Rep: Reputation: 0
This is an old thread, but google is picking it up and the previous answers are obsolete so I will update this thread.

The current (2004-11-26, fluxbox 0.9.9) method is to create an apps file in your .fluxbox directory. You can define startup programs in the apps file, you can also define application defaults. Example below. The format is fairly obvious.

The startup command is single line. It begins with the [startup] tag, followed by the command to execute in brace brackets. You can give the full path of the command, or just the filename if the path is in your PATH variable.

The application default command is multi-line. It starts with [app] tag followed by the WM_CLASS value in parentheses. You can find the WM_CLASS variable of an application by launching it from an xterm then use the xprop command to display the X properties of the open window. A [end] tag terminates the app default command. Between the [app] and [end] lines you can put the application default settings. See the fluxbox man page for details.

[startup]  {mozilla}
[startup]  {openoffice}
[startup]  {gnucash}
[startup]  {Eterm}
[startup]  {xmms}
[startup]  {/home/andrew/bin/}
[startup] {kmix}
[app] (kmix)
   [Workspace] {0}
[app] (Eterm)
   [Workspace] {2}
[app] (mozilla-bin)
  [Workspace]   {1}
  [Jump]        {yes}
[app] (VCLSalFrame)
  [Workspace]   {4}
[app] (XMMS_Player)
  [Workspace]   {0}
[app] (XMMS_Playlist)
  [Workspace]   {0}
[app] (XMMS_Equalizer)
  [Workspace]   {0}
[app] (GnuCash)
  [Workspace]   {3}
  [Dimensions]  {500 500}
  [Position]    {0 0}
  [Jump]        {no}


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
How to update programs and fluxbox alagenchev Linux - Software 6 10-13-2005 10:06 PM
fluxbox programs as startup jojack Linux - Software 6 01-03-2005 10:28 PM
.xinitrc, fluxbox, startup programs jdier Linux - Newbie 4 08-26-2004 03:41 PM
Fluxbox and programs rgriffin Linux - Software 13 03-30-2004 08:03 AM
Fluxbox and Running Programs as Root jrdioko Linux - Newbie 5 06-14-2003 08:20 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:24 AM.

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