mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 10:54:16 +02:00
sketch
This commit is contained in:
@@ -84,7 +84,10 @@ class SnapManager(SoftwareManager):
|
||||
|
||||
return app
|
||||
|
||||
def search(self, words: str, disk_loader: DiskCacheLoader, limit: int = -1) -> SearchResult:
|
||||
def search(self, words: str, disk_loader: DiskCacheLoader, limit: int = -1, is_url: bool = False) -> SearchResult:
|
||||
if is_url:
|
||||
return SearchResult([], [], 0)
|
||||
|
||||
if snap.is_snapd_running():
|
||||
installed = self.read_installed(disk_loader).installed
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ SNAPD_RUNNING_STATUS = {'listening', 'running'}
|
||||
|
||||
|
||||
def is_installed():
|
||||
res = run_cmd('which snap')
|
||||
res = run_cmd('which snap', print_error=False)
|
||||
return res and not res.strip().startswith('which ')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user