| Conditions | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | #!/usr/bin/env python3 |
||
| 33 | def main(): |
||
| 34 | dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) |
||
| 35 | |||
| 36 | session_bus = dbus.SessionBus() |
||
| 37 | # The BusName needs to be saved to a variable, if it is not saved - the |
||
| 38 | # Bus will be closed. |
||
| 39 | dbus_name = dbus.service.BusName( # pylint: disable=unused-variable |
||
| 40 | Constants.BUS_NAME, |
||
| 41 | session_bus) |
||
| 42 | DbusServer(session_bus, |
||
| 43 | '/org/coala_analyzer/v1', |
||
| 44 | on_disconnected=on_disconnected) |
||
| 45 | |||
| 46 | mainloop = GLib.MainLoop() |
||
| 47 | mainloop.run() |
||
| 48 |