Browse Source

Revert workaround hack

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

5
engine/api.py

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

Loading…
Cancel
Save