Index: src/kmess.cpp
===================================================================
--- src/kmess.cpp	(revisione 4104)
+++ src/kmess.cpp	(copia locale)
@@ -56,6 +56,7 @@
 #include "systemtraywidget.h"
 
 #include <QDir>
+#include <Phonon/BackendCapabilities>
 
 #include <KActionMenu>
 #include <KConfig>
@@ -1463,6 +1464,23 @@
   }
 
 
+  // Check whether a Phonon backend is available
+  if( Phonon::BackendCapabilities::availableAudioOutputDevices().isEmpty() )
+  {
+
+    // Show the message in the GUI as well.
+    // Allow to user to choose "don't show this message again", in case he/she doesn't know how to fix it.
+    KMessageBox::information( this,
+                              i18nc( "Text for a message dialog box",
+                                     "<html><p>KMess will not be able to play sounds.</p>"
+                                     "<p>Make sure you have installed a so-called \"Phonon backend\":<br/>"
+                                     "you can usually install a Phonon backend by searching for \"phonon\" "
+                                     "in your package manager.</p>"
+                                     "</html>" ),
+                              i18nc( "Message box title", "Error With Sounds" ),
+                              "phononBackendNotFound" );
+  }
+
   // Add check whether the 'eventsrc' file can be found.
   // The warning is a bit obtruisive, but should help to user to fix the problem.
   if( KGlobal::dirs()->findResource( "data", "kmess/kmess.notifyrc" ).isNull() )

