Merge pull request #139 from Maxime-J/master

Localized Desktop folder fix
This commit is contained in:
Clement Lefebvre 2015-09-19 14:42:36 +01:00
commit 5b17526d97

View File

@ -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