-#ifdef __GNUC__
-#warning TODO, SessionManagement
-#endif
-#if 0
- if (false /* KDE4-TODO: app.isSessionRestored() */) {
+ // the .desktop file is not taken into account when launching manually, so
+ // set the icon precautionally:
+ QApplication::setWindowIcon(KIcon("system-file-manager"));
+ KGlobal::locale()->insertCatalog("libkonq"); // needed for applications using libkonq
+
+ if (app.isSessionRestored()) {