X and Fluxbox :: Using .xinitrc to launch programs at startup



I don't think gqview has that ability, especially considering window minimization is (or should be) the job of the window manager.

What I'm having trouble understanding is what window is getting in the way?  If you use the "-f" (fullscreen) parameter, there should be nothing displayed other than the image window.  I've never used the "-s" parameter, so i don't know if there may be a conflict between the two....i'll test it out in a little bit, and next time i get back here i'll hopefully understand the situation better.  It may also be fluxbox.  If I remember correctly, the default settings prevent a true fullscreen application going over the toolbar.  Maybe it's preventing gqview from from going fullscreen.

In the meantime, I'd suggest looking in gqview's preferences to see if there might be a setting that will help (I didn't see one, but i looked quickly).

Ok, here's what I've come up with...

It doesn't work properly with fluxbox stable, and it doesn't work properly with icons.
So, you'll need to edit /home/dsl/.desktop to look like this:
Code Sample
wm: jwm
icons: 0

This will use JWM instead of Fluxbox, and won't use icons.  You might also want to comment out the dillo line from .xinitrc

Here's what my .xinitrc looks like for this, using DSL 2.4 and gqview-1.2.2.uci:
Code Sample
# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP="$(getoption.lua $HOME/.desktop wm)"
ICONS="$(getoption.lua $HOME/.desktop icons)"

# For non-US Keyboards
if [ ${KEYTABLE:0:2} != "us" ]; then
 xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi

#if egrep -qv noicons /proc/cmdline 2>/dev/null; then
if [ "$ICONS" == 1 ]; then
 for x in `ls -1 .xtdesktop/*.hide 2>/dev/null`; do rm -f ${x%.*}; done  #  iconsnap.lua &>/dev/null &
 xtdesk.sh
fi
#dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
torsmo 2>/dev/null &
case $DESKTOP in
 fluxbox )
   fluxter &>/dev/null &
   wmswallow -geometry 70x80 docked  docked.lua &
   exec fluxbox 2>/dev/null
 ;;
 jwm )
   ./.background
   sleep 2
   /opt/gqview-1.2.2/gqview -f -s /mnt/hda3/home/mik/image/ &
   exec jwm 2>/dev/null
 ;;
 * )
   exec fluxbox 2>/dev/null
 ;;
esac

But he want's the full desktop and setting it so you can use any desktop is much better. ???
But it doesn't work.  There's something about gqview that causes it to screw up when certain applications are opened.  In fluxbox, the main window opens for some reason, and there's no way to configure it otherwise.  In jwm with icons, the toolbar pops up in front of the image window, most likely because jwm is refreshing itself.

I'll play around with it a bit more, but so far it seems as though the only way to be able to pick an arbitrary window manager to use is to go with something other than gqview.  Maybe xscreensaver would be more appropriate.

Yeah, that's what i was thinking there might be someting else that works that way. I've got rest my eye's for now "Tag" your it. :D
Next Page...
original here.