xdg-open is default for file manager
This commit is contained in:
parent
28ad94ea6e
commit
ec579fe2d9
File diff suppressed because it is too large
Load Diff
|
@ -179,4 +179,4 @@ class EncLevel:
|
|||
class ProxyType:
|
||||
none, socks4, socks5, socks5_pw, http, http_pw = range(6)
|
||||
class FileManager:
|
||||
choose_one, konqueror, nautilus, thunar = range(4)
|
||||
choose_one, konqueror, nautilus, thunar, xdg = range(5)
|
||||
|
|
|
@ -639,6 +639,8 @@ class DelugeGTK:
|
|||
file_manager = "nautilus"
|
||||
if self.config.get("file_manager") == common.FileManager.thunar:
|
||||
file_manager = "thunar"
|
||||
if self.config.get("file_manager") == common.FileManager.xdg:
|
||||
file_manager = "xdg-open"
|
||||
elif self.config.get("open_folder_custom"):
|
||||
file_manager = self.config.get("open_folder_location")
|
||||
|
||||
|
@ -1010,6 +1012,7 @@ class DelugeGTK:
|
|||
_("Up Speed"), ulspeed, ulspeed_max, plugin_messages)
|
||||
|
||||
self.tray_icon.set_tooltip(msg)
|
||||
print self.config.get("file_manager")
|
||||
|
||||
def update_torrent_info_widget(self):
|
||||
unique_id = self.get_selected_torrent()
|
||||
|
|
|
@ -40,7 +40,7 @@ import common
|
|||
import os.path
|
||||
|
||||
DEFAULT_PREFS = {
|
||||
"file_manager" : common.FileManager.choose_one,
|
||||
"file_manager" : common.FileManager.xdg,
|
||||
"open_folder_stock" : True,
|
||||
"open_folder_custom" : False,
|
||||
"open_folder_location": "",
|
||||
|
|
Loading…
Reference in New Issue