For more information please see: http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
With this file, you can use the following command to run i3 in GNOME: gconftool-2 -s /desktop/gnome/session/required_components/windowmanager i3 --type string