[Bulk] Re: Trying to find startup script that loads appliecations in the gnome-sessons app ?!?
William Case
billlinux at rogers.com
Thu Jul 8 23:19:10 UTC 2010
On Thu, 2010-07-08 at 17:32 -0400, William Case wrote:
> On Thu, 2010-07-08 at 14:06 -0600, Kevin Fenzi wrote:
> > On Thu, 08 Jul 2010 15:53:54 -0400
> > William Case <billlinux at rogers.com> wrote:
> >
>
> > > xev | grep -m 1 ReparentNotify; firefox & xchat-gnome &
I have the following script in /usr/bin/compiz-gtk
#!/bin/bash
function runCompiz() {
gtk-window-decorator &
if ( [ -e /usr/lib/compizconfig/backends/libgconf.so ] ||
[ -e /usr/lib64/compizconfig/backends/libgconf.so ] )
then
exec compiz --ignore-desktop-hints ccp $@
else
exec compiz --ignore-desktop-hints glib gconf
gnomecompat $@
fi
}
ISSW=`glxinfo | grep "Software Rasterizer" -c`
# Try with direct rendering
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
runCompiz $@
fi
# Try again with indirect rendering
export LIBGL_ALWAYS_INDIRECT=1
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
runCompiz $@
fi
# Fall back to metacity
exec metacity $@
I was thinking of inserting the above xev line in here somewhere before
runCompiz function. Or perhaps as a separate function. But I can't find
where compiz-gtk gets called from on startup.
--
Regards Bill
Fedora 13, Gnome 2.30.2
Evo.2.20.2, Emacs 23.2.1
More information about the users
mailing list