kete-sandboxed: fix tuhi-kete import path

fixes e4e0a3b ("kete: rename the script from tuhi-kete.py to kete.py")

When renaming tuhi-kete into kete, we forgot to also update
tuhi-kete-sandboxed.py.
pull/119/head
Benjamin Tissoires 2018-03-06 10:00:49 +01:00
parent d86d3ce4a7
commit 83d669c059
1 changed files with 8 additions and 8 deletions

View File

@ -34,7 +34,7 @@ def main(args=sys.argv):
tuhi_process.start() tuhi_process.start()
# import after spawning the process, or the 2 processes will fight for GLib # import after spawning the process, or the 2 processes will fight for GLib
import tuhi_kete import kete
from gi.repository import Gio, GLib from gi.repository import Gio, GLib
# connect to the session # connect to the session
@ -43,7 +43,7 @@ def main(args=sys.argv):
except GLib.Error as e: except GLib.Error as e:
if (e.domain == 'g-io-error-quark' and if (e.domain == 'g-io-error-quark' and
e.code == Gio.IOErrorEnum.DBUS_ERROR): e.code == Gio.IOErrorEnum.DBUS_ERROR):
raise tuhi_kete.DBusError(e.message) raise kete.DBusError(e.message)
else: else:
raise e raise e
@ -51,25 +51,25 @@ def main(args=sys.argv):
try: try:
proxy = Gio.DBusProxy.new_sync(connection, proxy = Gio.DBusProxy.new_sync(connection,
Gio.DBusProxyFlags.NONE, None, Gio.DBusProxyFlags.NONE, None,
tuhi_kete.TUHI_DBUS_NAME, kete.TUHI_DBUS_NAME,
tuhi_kete.ROOT_PATH, kete.ROOT_PATH,
tuhi_kete.ORG_FREEDESKTOP_TUHI1_MANAGER, kete.ORG_FREEDESKTOP_TUHI1_MANAGER,
None) None)
except GLib.Error as e: except GLib.Error as e:
if (e.domain == 'g-io-error-quark' and if (e.domain == 'g-io-error-quark' and
e.code == Gio.IOErrorEnum.DBUS_ERROR): e.code == Gio.IOErrorEnum.DBUS_ERROR):
raise tuhi_kete.DBusError(e.message) raise kete.DBusError(e.message)
else: else:
raise e raise e
started = proxy.get_name_owner() is not None started = proxy.get_name_owner() is not None
if not started: if not started:
print(f'No-one is handling {tuhi_kete.TUHI_DBUS_NAME}, attempting to start a daemon') print(f'No-one is handling {kete.TUHI_DBUS_NAME}, attempting to start a daemon')
queue.put(not started) queue.put(not started)
tuhi_kete.main(args) kete.main(args)
if __name__ == '__main__': if __name__ == '__main__':