Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37854631
en ru br
ALT Linux repositórios
S:22.04.2-alt7

Group :: Other
RPM: mate-menu

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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()
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009