Register just 'deluge' not '/usr/bin/deluge' in the magnet uri handler

This commit is contained in:
Andrew Resch 2009-11-29 01:45:46 +00:00
parent 1353ce6903
commit 8c283875fb
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class GtkUI(object):
key = "/desktop/gnome/url-handlers/magnet/command" key = "/desktop/gnome/url-handlers/magnet/command"
gconf_client = gconf.client_get_default() gconf_client = gconf.client_get_default()
if not gconf_client.get(key): if not gconf_client.get(key):
if gconf_client.set_string(key, "/usr/bin/deluge '%s'"): if gconf_client.set_string(key, "deluge '%s'"):
gconf_client.set_bool("/desktop/gnome/url-handlers/magnet/needs_terminal", False) gconf_client.set_bool("/desktop/gnome/url-handlers/magnet/needs_terminal", False)
gconf_client.set_bool("/desktop/gnome/url-handlers/magnet/enabled", True) gconf_client.set_bool("/desktop/gnome/url-handlers/magnet/enabled", True)
log.info("Deluge registered as default magnet uri handler!") log.info("Deluge registered as default magnet uri handler!")