Merge pull request #403 from enrey/restart_fix

Fixed docker container stop/start blank background error
This commit is contained in:
Budi Utomo 2024-05-03 15:32:53 +02:00 committed by GitHub
commit fbd31b9076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,6 +134,10 @@ class Emulator(Device):
self.logger.info(f"{self.device_type} is created!")
def change_permission(self) -> None:
not_first_run = self.is_initialized()
if not_first_run:
return
kvm_path = "/dev/kvm"
if os.path.exists(kvm_path):
cmds = (f"sudo chown 1300:1301 {kvm_path}",