PDA

View Full Version : KDE Autostart


BSOST
October 8th, 2007, 01:06 AM
Having some trouble getting Compiz-Fusion to autostart under KDE.

I was using Beryl and openSuSE 10.2, and i had Beryl starting from the .xinitrc script in the users home directory, and all worked fine.

Now i'm uusing openSuSE 10.3, and Compiz-Fusion, the logins hang when starting Compiz from teh .xinitrc script, openSuSE recommend putting a startup srcipt for compiz in the bin directory, however i don't use XGL, so teh bin directory is useless.

atm i've got it starting from the KDE autostart folder, but i don't like it, the screen briefly goes black while it's loading compiz,and it slows down the login, which i don't mind if it's doing it behind the splash screen like beryl did.

Is there a better way of autostarting Compiz?

terryxela
October 15th, 2007, 04:07 AM
There are many ways to autostart. I just copy this script to konqueor/Go/autostart. You can remove emerald and add kde if you want it.
At the present I have the compiz-fusion icon in the pannel and after the desktop is loaded I just click on it, instead of autostart.


#! /bin/sh
sleep 10
compiz --replace ccp &
emerald --replace ccp &

-=terry(Denver)=-

bouncingmolar
October 28th, 2007, 09:25 PM
I also get a full screen Black splash screen after it boots the desktop in Kubuntu.

I don't think i'd like to click an icon to make it load. How do we make Compiz start before the desktop loads?

xinix
October 30th, 2007, 03:46 AM
I start Beryl and Compiz as a KDM session. This is how I have things setup and your system may vary but this should help.

In "/usr/share/xsessions" I have a file called "beryl.desktop". The contents of this file are:

[Desktop Entry]
Encoding=UTF-8
Name=Beryl
Exec=/usr/bin/beryl-kde
Icon=
Type=Application


Then in "/usr/bin" I have a script (don't forget to set as executable) called "beryl-kde" with these lines:

#!/bin/bash
nvidia-settings -load-config-only &
beryl --indirect-rendering --strict-binding --screen 0 --replace settings &
emerald --replace &
exec startkde

I have another set of similar files for Compiz. To use I simply choose the appropriate session in KDM and my desktop starts right into Beryl or Compiz instead of loading KDE and then loading the good stuff.

giancarlo
October 30th, 2007, 02:58 PM
my compiz starts fine but the title bar with the close, max, min buttons are gone, i have to type emerald --replace everytime to use the windecor. How can i start the emerald decor automaticaly? sorry for newbie question :D

ishkarioth
October 30th, 2007, 05:15 PM
Write

emerald --replace &

in CCSM->Windows Decoration->Command