From 5dafdc95df1fbf53a3567666ac227aa02bec4ce2 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Thu, 9 Aug 2007 19:44:38 +0000 Subject: [PATCH] Tweaks to process open code. --- plugins/TorrentFiles/tab_files.py | 4 ++-- src/interface.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/TorrentFiles/tab_files.py b/plugins/TorrentFiles/tab_files.py index 8ccd419bd..3d1f007d2 100644 --- a/plugins/TorrentFiles/tab_files.py +++ b/plugins/TorrentFiles/tab_files.py @@ -55,8 +55,8 @@ class FilesTabManager(FilesBaseManager): convert_path_to_child_path(path) file_name = self.file_store.get_value( self.file_store.get_iter(child_path), 0) - os.system('%s "%s" &' % (self.file_viewer, - os.path.join(save_dir, file_name))) + os.popen4('%s "%s"' % (self.file_viewer, + os.path.join(save_dir, file_name))) except KeyError: pass diff --git a/src/interface.py b/src/interface.py index c9d996123..515d9232d 100644 --- a/src/interface.py +++ b/src/interface.py @@ -657,7 +657,7 @@ class DelugeGTK: torrent_path = os.path.join(torrent_path, file["path"].split("/", 1)[0]) - os.system('%s "%s"' % (file_manager, torrent_path)) + os.popen4('%s "%s"' % (file_manager, torrent_path)) except KeyError: pass