# Bt Setup
+ if not "--minport" in args:
+ minport = self.gconf_client.get_int('/apps/'+app_name+'/settings/min_port')
+ if minport > 0:
+ args.append("--minport")
+ args.append(minport)
+
bt_state_args = BtState.Args(args[1:])
if not bt_state_args.path_origin:
diff -ur gnome-btdownload-0.0.22/src/gnome-btdownload.schemas.in gnome-btdownload-0.0.22-timrod/src/gnome-btdownload.schemas.in
--- gnome-btdownload-0.0.22/src/gnome-btdownload.schemas.in 2005-05-30 00:06:12.000000000 +0200
+++ gnome-btdownload-0.0.22-timrod/src/gnome-btdownload.schemas.in 2006-05-11 03:51:04.000000000 +0200
@@ -66,5 +66,16 @@
<long>If true, display an error dialog as well as log an event whenever an error occurs; otherwise, just log an error</long>
</locale>
</schema>
+ <schema>
+ <key>/schemas/apps/gnome-btdownload/settings/min_port</key>
+ <applyto>/apps/gnome-btdownload/settings/min_port</applyto>
+ <owner>gnome-btdownload</owner>
+ <type>int</type>
+ <default>6881</default>
+ <locale name="C">
+ <short>First port to bind to</short>
+ <long>Specifies the minimum port gnome-btdownload should bind to. If it is in use, the port is increased.</long>
+ </locale>
+ </schema>
</schemalist>
</gconfschemafile>
I've fixed it. Here's a patch (sorry, I'm new to launchpad, as in just registered and haven't figured out how to attach files yet ;)
Oh and while I'm writing disclaimers, this is my first ever patch to a python/gnome app, but it looks alright and works for me...
--- 8< ---
diff -ur gnome-btdownloa d-0.0.22/ src/gnome- btdownload gnome-btdownloa d-0.0.22- timrod/ src/gnome- btdownload d-0.0.22/ src/gnome- btdownload 2005-05-31 05:33:34.000000000 +0200 d-0.0.22- timrod/ src/gnome- btdownload 2006-05-11 03:48:42.000000000 +0200 gconf_client. notify_ add('/apps/ '+app_name+ '/settings' , self.on_ gconf_settings_ notify)
--- gnome-btdownloa
+++ gnome-btdownloa
@@ -770,6 +775,12 @@
#self.
# Bt Setup client. get_int( '/apps/ '+app_name+ '/settings/ min_port' ) "--minport" ) minport) Args(args[ 1:])
+ if not "--minport" in args:
+ minport = self.gconf_
+ if minport > 0:
+ args.append(
+ args.append(
+
bt_state_args = BtState.
if not bt_state_ args.path_ origin: d-0.0.22/ src/gnome- btdownload. schemas. in gnome-btdownloa d-0.0.22- timrod/ src/gnome- btdownload. schemas. in d-0.0.22/ src/gnome- btdownload. schemas. in 2005-05-30 00:06:12.000000000 +0200 d-0.0.22- timrod/ src/gnome- btdownload. schemas. in 2006-05-11 03:51:04.000000000 +0200 apps/gnome- btdownload/ settings/ min_port< /key> /apps/gnome- btdownload/ settings/ min_port< /applyto> gnome-btdownloa d</owner> 6881</default>
diff -ur gnome-btdownloa
--- gnome-btdownloa
+++ gnome-btdownloa
@@ -66,5 +66,16 @@
<long>If true, display an error dialog as well as log an event whenever an error occurs; otherwise, just log an error</long>
</locale>
</schema>
+ <schema>
+ <key>/schemas/
+ <applyto>
+ <owner>
+ <type>int</type>
+ <default>
+ <locale name="C">
+ <short>First port to bind to</short>
+ <long>Specifies the minimum port gnome-btdownload should bind to. If it is in use, the port is increased.</long>
+ </locale>
+ </schema>
</schemalist>
</gconfschemafile>