.xinitrc fluxbox question
I want to make gkrellm start in the fluxbox slit on startup, everywhere i've read it says you add the app names to your ~/.xinitrc. Only problem is that my user account has no .xinitrc. I coppied the one from the root account , but it was for windowmaker, so i changed the last line to say fluxbox instead and added gkrellm -w to the line above.
#!/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 # If the user lacks $HOME/GNUstep, install it: if [ ! -f $HOME/GNUstep/Defaults/WindowMaker ]; then wmaker.inst fi # Test for cpp, which wmaker uses to process config files: if [ ! -x /usr/bin/cpp ]; then NOCPP="--no-cpp" fi gkrellm -w # Start the window manager: exec fluxbox I have no idea what i'm doing as i've only ever run just plane gnome before. So please be gentle. |
i changed my /etc/X11/XSession to load all progs before calling fluxbox
this assuming you use gdm, if you use another graphical login the process should be similar |
jesus...just create file .xinitrc in your home dir with one line ( well, two ).
#!/bin/sh exec fluxbox save it and make it executable |
Quote:
|
You did fine doing what you did...nothing wrong with that.
Another option, if you're running Fluxbox 0.9.6, is to use the ~/.fluxbox/apps file. In this you can specify programs to start only in fluxbox, but not in other window managers. |
-jesus...just create file .xinitrc in your home dir with one line ( well, two ).
- -#!/bin/sh -exec fluxbox - -save it and make it executable I read this thread with great interest since I also want to startup some apps while using fluxbox. However, whatever suggestion I follow, nothing seems to happen. Is there a way to check whether my .xsession is actually accessed? And another thing: to test it, do I have to reboot, or is log off/on enough? Thanks, Leon. |
i figured it out LJSBrokken! just create the file /home/youruser/.fluxbox/apps and add whatever programs you want. I run gkrellm and fbdesk at startup so i just use this
[startup] {gkrellm -w} [startup] {fbdesk} just change it to programs you want. |
Abe I thought you relieved me from this annoying thing, but also this doesn't work for me. I must be doing something completely wrong?!
I wish I could give more details but I have no clue which. I have tried adding the startup progs to .xinitrc, .xsession, and now this apps file. About apps: doesn't fluxbox have to know somehow that it should look in that file? I added the line session.appsFile: ~/.fluxbox/apps to the ~/.fluxbox/init file, but no luck with that either. Anyone, anything? |
apps is a new addition....if you're using Fluxbox stable it's not available.
|
Thanx mikshaw, that explains it :-(
Is there a way to 'upgrade' to the latest development version? Or should I first get rid of the stable version and than compile the new one? But anyway, does anyone have an idea why making a .xsession file does not seem to have any effect? |
Re: upgrading to development version, Slack 9.1 comes with the stable, but I just did the standard ./configure, make, make install on fluxbox 0.9.9 and it works fine. I don't know if 0.1.14 is still hanging around somewhere, but I'll deal with it later... still tweaking my slit... for some reason, it doesn't load the apps in the order that I want... *grumble*
|
I'm pretty sure that the reason .xinitrc does not work for you, is that your using a graphical login such as kdm or gdm. The .xinitrc works only when u start in runlevel 3, then type startx.
|
Quote:
so how does one get this(/home/.jerkface/.xinitrc) to load at kdm or gdm or should i say the executions within /home/.jerkface/.xinitrc) at kdm or gdm login? thanks !! slackin and fluxin ! |
i had this problem before and then discovered that the culprit is.....the ampersand!!
it seems you need to add an ampersand ( & ) at the end of additional programs you want to run here's my .xinitrc file Code:
#!/bin/sh |
All times are GMT -5. The time now is 07:46 AM. |