It's a shell script, mfaridi. Look at your the script, and compare it to the default xinitrc: /usr/X11/xinit/xinitrc. Then, look at your ~/.xinitrc or ~/.xsession script, and compare.
[spoon-feed]
To have it start gnome, it should look something like:
Code:
#!/bin/sh
/usr/local/bin/gnome-session
To have it start xfce, it should look something like:
Code:
#!/bin/sh
/usr/local/bin/startxfce4
[/spoon-feed]