Browse Source

Revert workaround hack

master
Nils 4 years ago
parent
commit
32e1d1d15b
  1. 15
      engine/api.py

15
engine/api.py

@ -196,30 +196,25 @@ def sessionList()->list:
def buildSystemPrograms():
"""Build a list of dicts with the .desktop files (or similar) of all NSM compatible programs
present on the system"""
return True
present on the system"""
programDatabase.build()
def getSystemPrograms()->list:
"""Returns the cached database from buildProgramDatabase. No automatic update. Empty on program
start"""
return []
start"""
return programDatabase.programs
def setSystemsPrograms(listOfDicts:list):
return True
def setSystemsPrograms(listOfDicts:list):
programDatabase.loadPrograms(listOfDicts)
def getNsmExecutables()->set:
"""Cached access fort fast membership tests. Is this program in the PATH?"""
return set()
"""Cached access fort fast membership tests. Is this program in the PATH?"""
return programDatabase.nsmExecutables
def getUnfilteredExecutables()->list:
"""Return a list of unique names without paths or directories of all exectuables in users $PATH.
This is intended for a program starter prompt. GUI needs to supply tab completition or search
itself"""
return []
itself"""
return programDatabase.unfilteredExecutables

Loading…
Cancel
Save