update mainloop from deprecation, remove spaces

This commit is contained in:
Jakobus Schürz 2023-06-03 10:38:10 +02:00
parent d73ec91cf2
commit 899deb1c7a

View file

@ -32,7 +32,12 @@ except:
import dbus import dbus
import dbus.service import dbus.service
import dbus.glib # deprecated
#import dbus.glib
# replaces by this 2 lines
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
from mkbackup.system_notification_emitter import Emitter from mkbackup.system_notification_emitter import Emitter
from mkbackup.mkbackup_emitter import Emitter as EM from mkbackup.mkbackup_emitter import Emitter as EM