153 | | try: |
---|
154 | | devmgr=DeviceManagerInterface(server, basepath) |
---|
155 | | except dbus.DBusException, ex: |
---|
156 | | print "\n" |
---|
157 | | print "===========================================================" |
---|
158 | | print "ERROR: Could not communicate with the FFADO DBus service..." |
---|
159 | | print "===========================================================" |
---|
160 | | print "\n" |
---|
161 | | msg.warning( msg, "FFADO-DBus not found", "<qt><b>The connection to FFADOs DBus service could not be established.</b><p>Maybe you didn't start ffado-dbus-server?</qt>" ) |
---|
162 | | sys.exit(-1) |
---|
| 155 | repeat = 1 |
---|
| 156 | while repeat > 0: |
---|
| 157 | try: |
---|
| 158 | devmgr=DeviceManagerInterface(server, basepath) |
---|
| 159 | repeat -= 1 |
---|
| 160 | except dbus.DBusException, ex: |
---|
| 161 | print "\n" |
---|
| 162 | print "===========================================================" |
---|
| 163 | print "ERROR: Could not communicate with the FFADO DBus service..." |
---|
| 164 | print "===========================================================" |
---|
| 165 | print "\n" |
---|
| 166 | tmp = msg.question( msg, "FFADO-DBus not found", "<qt><b>The connection to FFADOs DBus service could not be established.</b><p>Probably you didn't start the ffado-dbus-server. Should I try this now?</qt>", QMessageBox.Yes, QMessageBox.No ) |
---|
| 167 | if tmp == 4: |
---|
| 168 | sys.exit(-1) |
---|
| 169 | else: |
---|
| 170 | os.spawnlp( os.P_NOWAIT, "ffado-dbus-server" ) |
---|
| 171 | time.sleep( 2.5 ) |
---|
| 172 | |
---|