From 0985fb3ceb39bb9d2a5454237cbfa048d6e0b8d7 Mon Sep 17 00:00:00 2001
From: Priit Laes <plaes@plaes.org>
Date: Sat, 13 Jun 2009 17:01:47 +0300
Subject: [PATCH] Added session startup support.

Disabled by default.

Signed-off-by: Priit Laes <plaes@plaes.org>
---
 data/Makefile.am      |    4 ++++
 data/guake.desktop.in |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/data/Makefile.am b/data/Makefile.am
index 74b01c5..d0f3eee 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -18,6 +18,10 @@ desktopdir = $(datadir)/applications
 desktop_in_files = guake.desktop.in guake-prefs.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
+autostartdir = $(sysconfdir)/xdg/autostart
+autostart_in_files = guake.desktop.in
+autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
+
 @INTLTOOL_SCHEMAS_RULE@
 schemadir = $(sysconfdir)/gconf/schemas
 schema_DATA = guake.schemas
diff --git a/data/guake.desktop.in b/data/guake.desktop.in
index 78f8b99..47c30cb 100644
--- a/data/guake.desktop.in
+++ b/data/guake.desktop.in
@@ -3,7 +3,7 @@ Encoding=UTF-8
 Name=Guake Terminal
 Name[pt]=Guake Terminal
 Name[pt_BR]=Guake Terminal
-Comment=Use the command line in a Quake like terminal
+Comment=Use the command line in a Quake-like terminal
 Comment[pt]=Utilizar a linha de comando em um terminal estilo Quake
 Comment[pt_BR]=Utilizar a linha de comando em um terminal estilo Quake
 TryExec=guake
@@ -12,3 +12,4 @@ Icon=@DATADIR@/pixmaps/guake/guake.png
 Type=Application
 Categories=GNOME;GTK;Utility;TerminalEmulator;
 StartupNotify=true
+X-GNOME-Autostart-enabled=false
-- 
1.6.3.1

