fixed listing

This commit is contained in:
Maxim Stewart 2020-07-05 18:44:24 -05:00
parent af81743c2e
commit 28e92eceb3
1 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class Main(Context):
else:
for folder in listdir(path):
try:
fPath = path + folder
fPath = path + folder + "/"
self.listAndUpdateDesktopFiles(fPath, menuObjs);
except Exception as e:
self.logger.debug(e)
@ -83,8 +83,7 @@ class Main(Context):
def listAndUpdateDesktopFiles(self, path, menuObjs):
for f in listdir(path):
fPath = path + f
flags = ["mimeinfo.cache", "defaults.list"]
if not f in flags and isfile(fPath):
if isfile(fPath) and f.endswith(".desktop"):
xdgObj = DesktopEntry(fPath)
title = xdgObj.getName()
@ -125,6 +124,7 @@ class Main(Context):
def getSubgroup(self, group, query = ""):
"""
# TODO: