Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37867004
en ru br
ALT Linux repos
S:22.04.2-alt7

Group :: Other
RPM: mate-menu

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-use-themed-app-list.patch
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()
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin