now you are excited too early...Now I AM excited Smile
there is still some problem...
i cannot connect to rfcomm... even when compiled without policykit, now lets see if there is another way...
from
https://bugs.launchpad.net/blueman/+bug/770259
--- /usr/share/pyshared/blueman/main/PPPConnection.py 2010-12-08 18:02:25.000000000 +0100
+++ /usr/share/pyshared/blueman/main/PPPConnection.py.working 2011-04-25 15:15:55.000000000 +0200
@@ -88,9 +88,12 @@ class PPPConnection(gobject.GObject):
def connect_callback(self, response):
if "CONNECT" in response:
dprint("Starting pppd")
- self.pppd = subprocess.Popen(["/usr/sbin/pppd", "%s" % self.port, "defaultroute", "updetach", "usepeerdns"], bufsize=1, stdout=subprocess.PIPE)
+ self.pppd = subprocess.Popen(["/usr/sbin/pppd", "%s" % self.port,
+ "crtscts",
+ "defaultroute", "nodetach", "usepeerdns"
+ ], bufsize=1, stdout=subprocess.PIPE)
glib.io_add_watch(self.pppd.stdout, glib.IO_IN | glib.IO_ERR | glib.IO_HUP, self.on_pppd_stdout)
- glib.timeout_add(1000, self.check_pppd)
+ glib.timeout_add(2000, self.check_pppd)
self.cleanup()
else:
@@ -178,7 +181,8 @@ class PPPConnection(gobject.GObject):
print "pppd exited with status %d" % status
return False
- return True
+ self.emit("connected", self.interface)
+ return False
def send_command(self, command):
dprint("-->", command)