Index: /trunk/libffado/support/mixer/ffadomixer.in =================================================================== --- /trunk/libffado/support/mixer/ffadomixer.in (revision 802) +++ /trunk/libffado/support/mixer/ffadomixer.in (revision 804) @@ -26,4 +26,6 @@ sys.path.append( "$PYTHONDIR" ) +import os +import time import dbus from qt import * @@ -151,14 +153,22 @@ msg = QMessageBox() - try: - devmgr=DeviceManagerInterface(server, basepath) - except dbus.DBusException, ex: - print "\n" - print "===========================================================" - print "ERROR: Could not communicate with the FFADO DBus service..." - print "===========================================================" - print "\n" - msg.warning( msg, "FFADO-DBus not found", "The connection to FFADOs DBus service could not be established.

Maybe you didn't start ffado-dbus-server?" ) - sys.exit(-1) + repeat = 1 + while repeat > 0: + try: + devmgr=DeviceManagerInterface(server, basepath) + repeat -= 1 + except dbus.DBusException, ex: + print "\n" + print "===========================================================" + print "ERROR: Could not communicate with the FFADO DBus service..." + print "===========================================================" + print "\n" + tmp = msg.question( msg, "FFADO-DBus not found", "The connection to FFADOs DBus service could not be established.

Probably you didn't start the ffado-dbus-server. Should I try this now?", QMessageBox.Yes, QMessageBox.No ) + if tmp == 4: + sys.exit(-1) + else: + os.spawnlp( os.P_NOWAIT, "ffado-dbus-server" ) + time.sleep( 2.5 ) + nbDevices=devmgr.getNbDevices()