You are not logged in.

#1 2009-05-23 20:01:06

Jonhoo
Member
Registered: 2009-05-23
Posts: 113

[SOLVED]xcompmgr does not run at start-up

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?
Jon

Last edited by Jonhoo (2009-05-23 22:27:26)

Offline

#2 2009-05-23 20:03:41

leprosys
Member
From: El Salvador
Registered: 2009-02-23
Posts: 75
Website

Re: [SOLVED]xcompmgr does not run at start-up

you need add "exec" in the line:

exec xcompmgr -cC -t5 -l5 -r4.2 -o.55 &

Offline

#3 2009-05-23 20:21:28

Jonhoo
Member
Registered: 2009-05-23
Posts: 113

Re: [SOLVED]xcompmgr does not run at start-up

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

Offline

#4 2009-05-23 21:34:10

Maxa
Member
Registered: 2008-11-30
Posts: 31

Re: [SOLVED]xcompmgr does not run at start-up

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...

Offline

#5 2009-05-23 22:26:18

Jonhoo
Member
Registered: 2009-05-23
Posts: 113

Re: [SOLVED]xcompmgr does not run at start-up

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 "@"

to

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! big_smile
Jon

Offline

Board footer

Powered by FluxBB