Don't pass env variable value through bash echo
This commit is contained in:
parent
1e85987b70
commit
849bbfe94c
@ -181,7 +181,6 @@ class pluginclass( object ):
|
|||||||
from configobj import ConfigObj
|
from configobj import ConfigObj
|
||||||
config = ConfigObj(home + "/.config/user-dirs.dirs")
|
config = ConfigObj(home + "/.config/user-dirs.dirs")
|
||||||
tmpdesktopDir = config['XDG_DESKTOP_DIR']
|
tmpdesktopDir = config['XDG_DESKTOP_DIR']
|
||||||
tmpdesktopDir = commands.getoutput("echo " + tmpdesktopDir)
|
|
||||||
if os.path.exists(tmpdesktopDir):
|
if os.path.exists(tmpdesktopDir):
|
||||||
desktopDir = tmpdesktopDir
|
desktopDir = tmpdesktopDir
|
||||||
except Exception, detail:
|
except Exception, detail:
|
||||||
|
Loading…
Reference in New Issue
Block a user