From 128f9d21e770ce3ca1ccced78103431732e7b40f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 12 Mar 2013 00:48:19 -0500 Subject: [PATCH] Fix autostart --- src/Makefile.am | 3 +++ src/main.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 96e1d64..2d595da 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,3 +21,6 @@ messages: $(XGETTEXT) $(kerberostray_SOURCES) -o $(podir)/kerberostray.pot xdg_apps_DATA = kerberostray.desktop + +autostart_DATA = kerberostray.desktop +autostartdir = $(datadir)/autostart diff --git a/src/main.cpp b/src/main.cpp index e9e7ba6..d41bcb3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,6 +41,9 @@ int main(int argc, char *argv[]) TDEApplication app; + // We handle autostart via standard autostart-enabled .desktop file instead of the session manager + app.disableSessionManagement(); + TopLevel toplevel; KWin::setSystemTrayWindowFor(toplevel.winId(), 0); toplevel.show();