Browse Source

code comment

master
Nils 10 months ago
parent
commit
45e68660f9
  1. 3
      engine/findprograms.py

3
engine/findprograms.py

@ -112,7 +112,8 @@ class SupportedProgramsDatabase(object):
"""
agorExec = desktopEntry.get("X-NSM-Exec")
agorExec = desktopEntry.get("X-NSM-Exec") #If there is a specific executable to start from nsm, use this. If not we use the normal executable below.
if not agorExec:
n = pathlib.Path(desktopEntry.getExec()).name
agorExec = n.split(" ")[0].strip() # this will fail with special filenames, such as spaces in filenames. But it is already the fallback for programs not adhering to the nsm specs. not our problem anymore.

Loading…
Cancel
Save