Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sarting Fluxbox not running /etc/profile, ~/.xsession, etc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MarkG
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2002
Posts: 90
Location: Dorset, UK

PostPosted: Mon May 13, 2002 5:25 pm    Post subject: Sarting Fluxbox not running /etc/profile, ~/.xsession, etc Reply with quote

In search of the prefect window manager, but not willing to spend hours configuring loads I finally tore myself away from KDE and tried Fluxbox at the weekend. I instantly took a liking to its simplicity size and speed; it reminded me of olvm but with all buttons and menus in the correct place. I did however come across a few problems:
1) /etc/profile does not get run
2) ~/.xsession is not run on starting the WM
3) ~/.Xresources, ~/.Xdefaults and ~/.Xmodmap don't get loaded on starting the WM

I've dug around the XDM start-up scripts and modified the /etc/X11/Session/fluxbox to fix these problems, is this a bug or have I missed something?

My /etc/X11/Session/fluxbox
Code:

#!/bin/sh

# Fluxbox start-up script, called from /etc/X11/chooser.sh (xdm/kdm)
# Modified (completely rewritten) by Mark Gawler 12-May-2002

# Load .Xdefaults and run /etc/profile, ~/.xsession

# For some reason /etc/profile was not run during the starting of fluxbox so
# hear seems like a good place to add it.
source /etc/profile

# The start up of fluxbox seems to be sadly missing the running / loading of
# the normal user definable stuff when the user logs in via xdm/kdm so we'll
# do it hear.
 
startup=$HOME/.xsession

userdefaults=$HOME/.Xdefaults
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap

#Xdefaults
if [ -f "$userdefaults" ]; then
    xrdb -merge "$userdefaults"
fi
#Xresorces
if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi
#Xmodmap
if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi
#xsession
if [ -f "$startup" ]; then
 if [ -x "$startup" ]; then
     source "$startup" &
 else
     source /bin/sh "$startup" &
 fi
fi

# And finally we'll start fluxbox,
/usr/bin/fluxbox



The only other niggles with Fluxbox is there doesn't seem to be a way of seeing all the open applications at a glance like the launcher bar in KDE. I also don't like not being able to grab the edge of a window to resize it.

What I do like is its speed of starting, the fact it doesn't crash when I suspend my laptop in VMware full screen mode, and it's small footprint.

I hope the above is help to others, should I submit a bug.

MarkG
Back to top
View user's profile Send private message
cuisinart
Guest





PostPosted: Mon May 13, 2002 10:47 pm    Post subject: Bug Reply with quote

Go ahead and submit a bug, I had to set this up by hand, but most users will not know how to do this. The ebuild writer probably did not have the time to do it on their own...
Back to top
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Mon May 13, 2002 11:04 pm    Post subject: Reply with quote

So is the code MarkG posted a solution? I wasn't sure if it was a solution or just a question.
Back to top
View user's profile Send private message
MarkG
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2002
Posts: 90
Location: Dorset, UK

PostPosted: Tue May 14, 2002 6:43 pm    Post subject: Reply with quote

kanuslupus wrote:
So is the code MarkG posted a solution?

Yup!

I've submitted a bug now.

MarkG
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum