Don't pass env variable value through bash echo

This commit is contained in:
Clement Lefebvre 2015-02-24 14:20:09 +01:00
parent 1e85987b70
commit 849bbfe94c

View File

@ -181,7 +181,6 @@ class pluginclass( object ):
from configobj import ConfigObj
config = ConfigObj(home + "/.config/user-dirs.dirs")
tmpdesktopDir = config['XDG_DESKTOP_DIR']
tmpdesktopDir = commands.getoutput("echo " + tmpdesktopDir)
if os.path.exists(tmpdesktopDir):
desktopDir = tmpdesktopDir
except Exception, detail: