fixed listing
This commit is contained in:
parent
af81743c2e
commit
28e92eceb3
|
@ -73,7 +73,7 @@ class Main(Context):
|
||||||
else:
|
else:
|
||||||
for folder in listdir(path):
|
for folder in listdir(path):
|
||||||
try:
|
try:
|
||||||
fPath = path + folder
|
fPath = path + folder + "/"
|
||||||
self.listAndUpdateDesktopFiles(fPath, menuObjs);
|
self.listAndUpdateDesktopFiles(fPath, menuObjs);
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.debug(e)
|
self.logger.debug(e)
|
||||||
|
@ -83,8 +83,7 @@ class Main(Context):
|
||||||
def listAndUpdateDesktopFiles(self, path, menuObjs):
|
def listAndUpdateDesktopFiles(self, path, menuObjs):
|
||||||
for f in listdir(path):
|
for f in listdir(path):
|
||||||
fPath = path + f
|
fPath = path + f
|
||||||
flags = ["mimeinfo.cache", "defaults.list"]
|
if isfile(fPath) and f.endswith(".desktop"):
|
||||||
if not f in flags and isfile(fPath):
|
|
||||||
xdgObj = DesktopEntry(fPath)
|
xdgObj = DesktopEntry(fPath)
|
||||||
|
|
||||||
title = xdgObj.getName()
|
title = xdgObj.getName()
|
||||||
|
@ -125,6 +124,7 @@ class Main(Context):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def getSubgroup(self, group, query = ""):
|
def getSubgroup(self, group, query = ""):
|
||||||
"""
|
"""
|
||||||
# TODO:
|
# TODO:
|
||||||
|
|
Loading…
Reference in New Issue