Author: andar

Revision: 5982

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

Diff:
Modified: branches/1.2_RC/deluge/ui/gtkui/gtkui.py
===================================================================
--- branches/1.2_RC/deluge/ui/gtkui/gtkui.py    2009-11-29 01:40:30 UTC (rev 
5981)
+++ branches/1.2_RC/deluge/ui/gtkui/gtkui.py    2009-11-29 01:45:46 UTC (rev 
5982)
@@ -189,7 +189,7 @@
             key = "/desktop/gnome/url-handlers/magnet/command"
             gconf_client = gconf.client_get_default()
             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/enabled", True)
                     log.info("Deluge registered as default magnet uri 
handler!")

Modified: trunk/deluge/ui/gtkui/gtkui.py
===================================================================
--- trunk/deluge/ui/gtkui/gtkui.py      2009-11-29 01:40:30 UTC (rev 5981)
+++ trunk/deluge/ui/gtkui/gtkui.py      2009-11-29 01:45:46 UTC (rev 5982)
@@ -189,7 +189,7 @@
             key = "/desktop/gnome/url-handlers/magnet/command"
             gconf_client = gconf.client_get_default()
             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/enabled", True)
                     log.info("Deluge registered as default magnet uri 
handler!")


--

You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.


Reply via email to