kdebase4-workspace/kdebase-workspace-4.1.2-startup-sound.patch
2012-02-01 15:17:26 +04:00

28 lines
1.1 KiB
Diff

--- ksmserver/startup.cpp 2008-04-10 06:30:10.000000000 -0300
+++ ksmserver/startup.cpp.new 2008-10-03 08:02:45.000000000 -0300
@@ -328,7 +328,14 @@
kcminit.runPhase2();
if( !defaultSession())
restoreLegacySession(KGlobal::config().data());
- KNotification::event( "startkde" , QString() , QPixmap() , 0l , KNotification::DefaultEvent ); // this is the time KDE is up, more or less
+ KNotification *n = KNotification::event( "startkde" , QString() , QPixmap() , 0l , KNotification::DefaultEvent ); // this is the time KDE is up, more or less
+ connect(n, SIGNAL( closed() ) , this, SLOT(startupSoundFinished()) );
+
+}
+
+void KSMServer::startupSoundFinished()
+{
+ kDebug( 1218 ) << "Startup event finished";
}
void KSMServer::runUserAutostart()
--- ksmserver/server.h 2008-04-10 06:30:10.000000000 -0300
+++ ksmserver/server.h.new 2008-10-03 08:02:28.000000000 -0300
@@ -133,6 +133,7 @@
void startupSuspendTimeout();
void wmProcessChange();
void logoutSoundFinished();
+ void startupSoundFinished();
void autoStart0Done();
void autoStart1Done();
void autoStart2Done();