Skip to contentSkip to conversation

Support relative path on send-files example

PATCH In review Danilo Cesar Lemes de Paula 2 participants 2 messages Mar 5, 2010 – Mar 25, 2010 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support relative path on send-files example

Agent should receive the absolute path as it runs on a different CWD

---
 test/send-files |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
test/send-files +3 -1
index caf00b9..85ea3f5 100755
@@ -2,6 +2,7 @@
 
 import gobject
 
+import os
 import sys
 import dbus
 import dbus.service
@@ -61,7 +62,8 @@ if __name__ == '__main__':
 	agent = Agent(bus, path)
 
 	mainloop = gobject.MainLoop()
+	files = [os.path.realpath(f) for f in sys.argv[2:]]
 
-	client.SendFiles({ "Destination": sys.argv[1] }, sys.argv[2:], path)
+	client.SendFiles({ "Destination": sys.argv[1] }, files, path)
 
 	mainloop.run()
Signature · 1 line
1.7.0
#1 lore raw

Hi Danilo,

Quoted 4 lines · Danilo Cesar Lemes de Paula

Agent should receive the absolute path as it runs on a different CWD

---
 test/send-files |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

This patch has now been pushed upstream. Thanks.

Johan