Fix restart bug

pull/64/head
Rikka 3 years ago
parent 90fff773b2
commit 8f8691423b
No known key found for this signature in database
GPG Key ID: 27646650E3A52AAF

@ -95,20 +95,19 @@ class General:
if self.use_dbus:
self.session = DBusContainerService().GetSession()
if self.session:
DBusContainerService().Stop(False)
DBusContainerService().Stop(False)
else:
run(["waydroid", "container", "stop"])
def start(self):
if self.use_dbus:
if self.use_dbus and self.session:
DBusContainerService().Start(self.session)
else:
run(["systemctl", "restart", "waydroid-container.service"])
def restart(self):
if DBusContainerService().GetSession():
self.stop()
self.start()
self.stop()
self.start()
def copy(self):
pass

Loading…
Cancel
Save