with the following:
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Compiz
Exec=/usr/bin/compiz ccp # make sure ccp is included
NoDisplay=true
X-GNOME-WMSettingsModule=compiz
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager
X-GNOME-WMName=Compiz
X-GnomeWMSettingsLibrary=compiz
or if it doesn't work this last step just put the complete path to the script for manually starting compiz in the line Exec=
Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems. All other content is freely available for sharing under the terms of the Creative Commons Attribution License.