|
|
@ -8,7 +8,7 @@ class Snap:
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def install(packages: list):
|
|
|
|
def install(packages: list):
|
|
|
|
subprocess.run(
|
|
|
|
subprocess.run(
|
|
|
|
['snap', 'install'] + packages,
|
|
|
|
['sudo', 'snap', 'install'] + packages,
|
|
|
|
env=Snap.env,
|
|
|
|
env=Snap.env,
|
|
|
|
check=True,
|
|
|
|
check=True,
|
|
|
|
stdout=subprocess.PIPE,
|
|
|
|
stdout=subprocess.PIPE,
|
|
|
@ -18,7 +18,7 @@ class Snap:
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def remove(packages: list):
|
|
|
|
def remove(packages: list):
|
|
|
|
subprocess.run(
|
|
|
|
subprocess.run(
|
|
|
|
['snap', 'remove'] + packages,
|
|
|
|
['sudo', 'snap', 'remove'] + packages,
|
|
|
|
env=Snap.env,
|
|
|
|
env=Snap.env,
|
|
|
|
check=True,
|
|
|
|
check=True,
|
|
|
|
stdout=subprocess.PIPE,
|
|
|
|
stdout=subprocess.PIPE,
|
|
|
|