Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37869819
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-desktop-place-fix.patch
Download


diff --git a/mate_menu/plugins/places.py b/mate_menu/plugins/places.py
index 3b8190e..4a0da36 100644
--- a/mate_menu/plugins/places.py
+++ b/mate_menu/plugins/places.py
@@ -172,11 +172,7 @@ class pluginclass( object ):
             # Determine where the Desktop folder is (could be localized)
             desktopDir = os.path.join(os.environ["HOME"] + "Desktop")
             try:
-                from configobj import ConfigObj
-                configPath = os.environ.get("XDG_CONFIG_HOME",
-                                            os.path.join( os.environ["HOME"], ".config"))
-                config = ConfigObj(os.path.join(configPath, "user-dirs.dirs"))
-                tmpdesktopDir = os.path.expandvars(config['XDG_DESKTOP_DIR'])
+                tmpdesktopDir = subprocess.check_output(['xdg-user-dir', 'DESKTOP']).decode().rstrip()
                 if os.path.exists(tmpdesktopDir):
                     desktopDir = tmpdesktopDir
             except Exception as detail:
 
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