Skip to content
Snippets Groups Projects
Commit 56461d88 authored by nkour's avatar nkour
Browse files

escape a char for dir

parent 2cb711b7
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,7 @@ def launch_file_manager(path_to_open):
if command == '': # if no app is configured
return
# we add the path in "" so we have good parsing from shell
path_to_open = path_to_open.replace('"', '\\"')
command = command + ' "' + path_to_open + '" &'
try: #FIXME: when we require python2.4+ use subprocess module
os.system(command)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment