fix: snap launch

This commit is contained in:
Vinicius Moreira
2019-09-18 18:01:01 -03:00
parent 3ac8a08ad8
commit 6c3e0e00bf
14 changed files with 48 additions and 32 deletions

View File

@@ -1,6 +1,7 @@
import os
import re
import shutil
import subprocess
import time
from pathlib import Path
from threading import Thread
@@ -580,3 +581,7 @@ class ArchManager(SoftwareManager):
def is_default_enabled(self) -> bool:
return False
def launch(self, pkg: ArchPackage):
if pkg.command:
subprocess.Popen(pkg.command.split(' '))

View File

@@ -102,9 +102,6 @@ class ArchPackage(SoftwarePackage):
# only returns if there is a desktop entry set for the application to avoid running command-line applications
return bool(self.desktop_entry)
def get_command(self) -> str:
return self.command
def get_publisher(self):
return self.maintainer