Group :: Other
RPM: mate-menu
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: alt-use-themed-app-list.patch
Download
Download
diff --git a/mate_menu/plugins/applications.py b/mate_menu/plugins/applications.py
index f72feb1..d9280d8 100644
--- a/mate_menu/plugins/applications.py
+++ b/mate_menu/plugins/applications.py
@@ -1217,7 +1217,12 @@ class pluginclass( object ):
self.checkMateMenuFolder()
if not os.path.isfile(self.favoritesPath):
# XXX: should the hardcoded path be removed?
- shutil.copyfile("/usr/share/mate-menu/applications.list", self.favoritesPath)
+ if os.path.exists("/usr/share/mate-menu/applications.list-themed"):
+ # Use themed applications list
+ shutil.copyfile("/usr/share/mate-menu/applications.list-themed", self.favoritesPath)
+ else:
+ # Use default applications list
+ shutil.copyfile("/usr/share/mate-menu/applications.list", self.favoritesPath)
applicationsFile = open(self.favoritesPath, "r")
applicationsList = applicationsFile.readlines()