mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-09-25 12:46:37 -07:00
Refactor theme installation code to use subprocess.run()
This commit is contained in:
@@ -183,8 +183,10 @@ class GlobalTheme:
|
|||||||
|
|
||||||
# install theme
|
# install theme
|
||||||
print("Installing theme...")
|
print("Installing theme...")
|
||||||
os.system(f"sudo cp -f {self.extracted_theme}/{self.destination_file} "
|
subprocess.run(["sudo", "cp", "-f",
|
||||||
f"{self.destination_folder}/{self.destination_file}")
|
f"{self.extracted_theme}/{self.destination_file}",
|
||||||
|
f"{self.destination_folder}/{self.destination_file}"],
|
||||||
|
check=True)
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user