handle launching explorer on windows a bit better

This commit is contained in:
Marcos Pinto 2007-09-27 07:56:28 +00:00
parent 283f30f884
commit e74c62d307
3 changed files with 505 additions and 504 deletions

File diff suppressed because it is too large Load Diff

View File

@ -252,4 +252,4 @@ class ProxyType:
none, socks4, socks5, socks5_pw, http, http_pw = range(6) none, socks4, socks5, socks5_pw, http, http_pw = range(6)
class FileManager: class FileManager:
xdg, konqueror, nautilus, thunar, explorer = range(5) xdg, konqueror, nautilus, thunar = range(4)

View File

@ -691,11 +691,10 @@ window, please enter your password"))
self.open_folder(view_column) self.open_folder(view_column)
def open_folder(self, widget): def open_folder(self, widget):
if common.windows_check:
if self.config.get("open_folder_stock"): if self.config.get("open_folder_stock"):
if self.config.get("file_manager") == common.FileManager.xdg: if self.config.get("file_manager") == common.FileManager.xdg:
file_manager = "xdg-open" file_manager = "xdg-open"
elif self.config.get("file_manager") == common.FileManager.explorer:
file_manager = "explorer.exe"
elif self.config.get("file_manager") == common.FileManager.\ elif self.config.get("file_manager") == common.FileManager.\
konqueror: konqueror:
file_manager = "konqueror" file_manager = "konqueror"
@ -705,6 +704,9 @@ window, please enter your password"))
file_manager = "thunar" file_manager = "thunar"
else: else:
file_manager = self.config.get("open_folder_location") file_manager = self.config.get("open_folder_location")
elif self.config.get("file_manager") == common.FileManager.explorer:
file_manager = "explorer.exe"
unique_ids = self.get_selected_torrent_rows() unique_ids = self.get_selected_torrent_rows()
try: try: