Use WayDroid 1.4 features like dbus and overlayfs #64
+1
-2
@@ -100,13 +100,12 @@ class General:
|
|||||||
run(["waydroid", "container", "stop"])
|
run(["waydroid", "container", "stop"])
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
if self.use_dbus:
|
if self.use_dbus and self.session:
|
||||||
DBusContainerService().Start(self.session)
|
DBusContainerService().Start(self.session)
|
||||||
else:
|
else:
|
||||||
run(["systemctl", "restart", "waydroid-container.service"])
|
run(["systemctl", "restart", "waydroid-container.service"])
|
||||||
|
|
||||||
def restart(self):
|
def restart(self):
|
||||||
if DBusContainerService().GetSession():
|
|
||||||
self.stop()
|
self.stop()
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user