mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
fix: snap launch
This commit is contained in:
@@ -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(' '))
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user