Skip to content

Commit

Permalink
wsl2 is linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rhendz committed Aug 18, 2023
1 parent d23c1c4 commit d480a51
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions spice_agent/daemons/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ def install(self):
if self.os_family == "Darwin":
full_launch_agent_install()
elif self.os_family == "Linux":
if "WSL2" in platform.platform():
full_service_install()
else:
print("Not Implemented")
full_service_install()
elif self.os_family == "Windows":
print("Not Implemented")
return result
Expand All @@ -40,10 +37,7 @@ def uninstall(self):
if self.os_family == "Darwin":
full_launch_agent_uninstall()
elif self.os_family == "Linux":
if "WSL2" in platform.platform():
full_service_uninstall()
else:
print("Not Implemented")
full_service_uninstall()
elif self.os_family == "Windows":
print("Not Implemented")
return result
Expand All @@ -53,10 +47,7 @@ def stop(self) -> bool:
if self.os_family == "Darwin":
result = stop_launch_agent()
elif self.os_family == "Linux":
if "WSL2" in platform.platform():
stop_service()
else:
print("Not Implemented")
stop_service()
elif self.os_family == "Windows":
print("Not Implemented")
return result
Expand All @@ -66,10 +57,7 @@ def start(self) -> bool:
if self.os_family == "Darwin":
result = start_launch_agent()
elif self.os_family == "Linux":
if "WSL2" in platform.platform():
start_service()
else:
print("Not Implemented")
start_service()
elif self.os_family == "Windows":
print("Not Implemented")
return result
Expand All @@ -78,9 +66,6 @@ def logs(self):
if self.os_family == "Darwin":
view_launch_agent_logs()
elif self.os_family == "Linux":
if "WSL2" in platform.platform():
view_service_logs()
else:
print("Not Implemented")
view_service_logs()
elif self.os_family == "Windows":
print("Not Implemented")

0 comments on commit d480a51

Please sign in to comment.