From 28e92eceb34d8b8711e7a643bd11bb7265865767 Mon Sep 17 00:00:00 2001 From: Maxim Stewart Date: Sun, 5 Jul 2020 18:44:24 -0500 Subject: [PATCH] fixed listing --- src/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index f08b9e8..e88fe79 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -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: