Index: src/metacity.desktop.in
===================================================================
--- src/metacity.desktop.in	(revisão 3668)
+++ src/metacity.desktop.in	(cópia de trabalho)
@@ -1,4 +1,5 @@
 [Desktop Entry]
+Type=Application
 Encoding=UTF-8
 _Name=Metacity
 Exec=metacity
@@ -11,6 +12,9 @@
 X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=metacity
 X-GNOME-Bugzilla-Component=general
+X-GNOME-Autostart-Phase=WindowManager
+X-GNOME-Provides=windowmanager
+X-GNOME-Autostart-Notify=true
 
 [Window Manager]
 SessionManaged=true
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revisão 3668)
+++ src/Makefile.am	(cópia de trabalho)
@@ -149,6 +149,7 @@
 desktopfiles_in_files=metacity.desktop.in
 desktopfiles_files=$(desktopfiles_in_files:.desktop.in=.desktop)
 desktopfiles_DATA = $(desktopfiles_files)
+
 @INTLTOOL_DESKTOP_RULE@
 
 schemadir   = @GCONF_SCHEMA_FILE_DIR@
@@ -170,6 +171,14 @@
 install-data-local:
 endif
 
+sessiondir = $(datadir)/gnome/default-session;
+
+install-data-hook:
+	if test -z "$(sessiondir)" ; then \
+	       $(MKDIR_P) $(sessiondir) \
+	fi
+	$(LN_S) -f $(desktopfilesdir)/$(desktopfiles_DATA) $(sessiondir)
+
 IMAGES=default_icon.png stock_maximize.png stock_minimize.png stock_delete.png
 VARIABLES=default_icon_data $(srcdir)/default_icon.png \
           stock_maximize_data $(srcdir)/stock_maximize.png \
