Hello fellow archers!
I have just installed xcompmgr on my GNOME/OpenBox setup.
It runs fine when I try to start it straight from a gnome terminal (`xcompmgr -cC -t5 -l5 -r4.2 -o.55`), but for some reason, it does not work when I put it in my .xinitrc file as such:
[jon@xcell ~]$ cat .xinitrc #!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) # exec gnome-session # exec startkde # exec startxfce4 # ...or the Window Manager of your choice numlockx & xcompmgr -cC -t5 -l5 -r4.2 -o.55 & exec gnome-session
Anybody know what might cause this problem?
Last edited by Jonhoo (2009-05-23 22:27:26)
you need add "exec" in the line:
exec xcompmgr -cC -t5 -l5 -r4.2 -o.55 &
Hmm.. Well, now my file looks like this:
numlockx & exec xcompmgr -cC -t5 -l5 -r4.2 -o.55 & exec gnome-session
But it still does not start... =S
How do you start X? If I'm not mistaken, gdm/kdm/slim doesn't source .xinitrc; startx and xinit does. If you use startx or xinit, your .xinitrc should be fine (nothing after first 'exec' in a script will run)
For Openbox there is ~/.config/openbox/autostart.sh where you can put xcompmgr, but I don't know how that works with GNOME and/or gdm...
You were completely correct, .xinitrc was never run since I had gdm in my daemons list in rc.conf.
Also, after following the Arch Wiki for Openbox+GNOME, I currently started openbox by having a file in /usr/share/applications/openbox.desktop as required in GNOME 2.24, and then selecting GNOME ( not Openbox/GNOME ) as the session. This results in autorun.sh not being run even though openbox starts.
Originally, I though that simply switching to Openbox/GNOME session would fix the problem, but due to an error in the openbox-gnome-session file, I couldn't even log in that way.
Here are the steps I did to solve this problem:
1) Delete /usr/share/applications/openbox.desktop
2) Edit /usr/bin/openbox-gnome-session, and change the line that reads:
exec gnome-session --choose-session=openbox-session "@"
exec openbox-session & exec gnome-session "$@"
This fixes the login problem for Openbox/GNOME session
3) Edit your ~/.config/openbox/autorun.sh to make it read:
xcompmgr -c -C -t5 -l5 -r4.2 -o.55 &
Due note: You CANNOT use -cC, this will result in shadows remaining on-screen as if the program has hanged, so that you can "paint" your screen with shadows. You have to put them separately...
4) Log out
5) Press the "Session" button on your login screen
6) Select Openbox/GNOME
7) Log in, select "Make default" and enjoy Openbox with shadows!
Thanks for pointing me in the right direction!