summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-03-12 00:48:19 -0500
committerTimothy Pearson <[email protected]>2013-03-12 00:48:19 -0500
commit128f9d21e770ce3ca1ccced78103431732e7b40f (patch)
treea12beed863dbb346f0f59cd8e1ff096c2ed0c470 /src
parent7644528b7c5f7ed8026766e43d1f3e666bc3b3c4 (diff)
downloadkerberostray-128f9d21e770ce3ca1ccced78103431732e7b40f.tar.gz
kerberostray-128f9d21e770ce3ca1ccced78103431732e7b40f.zip
Fix autostart
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am3
-rw-r--r--src/main.cpp3
2 files changed, 6 insertions, 0 deletions
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();