From 1350f8072a112714b4d2f49b6e26c5c6ab7d0e52 Mon Sep 17 00:00:00 2001 From: Maxime-J Date: Thu, 30 Jul 2015 18:28:26 +0200 Subject: [PATCH] Localized Desktop folder fix XDG_DESKTOP_DIR contains environment variable which is not automatically expanded by Python `XDG_DESKTOP_DIR="$HOME/Bureau"` We have to use os.path.expandvars --- usr/lib/linuxmint/mintMenu/plugins/places.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/places.py b/usr/lib/linuxmint/mintMenu/plugins/places.py index df3c910..6681509 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/places.py +++ b/usr/lib/linuxmint/mintMenu/plugins/places.py @@ -181,7 +181,7 @@ class pluginclass( object ): from configobj import ConfigObj config = ConfigObj(home + "/.config/user-dirs.dirs") tmpdesktopDir = config['XDG_DESKTOP_DIR'] - if os.path.exists(tmpdesktopDir): + if os.path.exists(os.path.expandvars(tmpdesktopDir)): desktopDir = tmpdesktopDir except Exception, detail: print detail