From 56461d88dc8585fd74bd060ee6ca207dfdbca687 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 11 Aug 2005 12:39:50 +0000 Subject: [PATCH] escape a char for dir --- src/common/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/helpers.py b/src/common/helpers.py index 0aa59495b..3ab0e6903 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -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)