Autostart Compiz-Fusion in the login window

De WikiMar
Dreceres ràpides: navegació, cerca

With this system, the user can specify in the login screen either to start with Compiz or not.


/usr/share/xsessions/kde.desktop

Create:

                     compiz-fusion-myprofile.desktop

With:

[Desktop Entry]
Encoding=UTF-8
Type=XSession
Name=Compiz-Fusion
Exec=/usr/bin/compiz-fusion-myprofile.desktop
Icon=
Type=Application

then do:

chmod 644 compiz-fusion-myprofile.desktop

Optionally create

/usr/bin/compiz-fusion-myprofile.wrapper

with:

#!/bin/sh
/usr/bin/compiz --replace  (and all other Compiz parameters you want)

And create

/usr/bin/compiz-fusion-myprofile.sh

with:

#!/bin/sh
export KDEWM=compiz-fusion-myprofile.wrapper

and do:

chmod 755 compiz-fusion-myprofile*