linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Support relative path on send-files example
@ 2010-03-05 18:46 Danilo Cesar Lemes de Paula
  2010-03-25 13:13 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Danilo Cesar Lemes de Paula @ 2010-03-05 18:46 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: 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(-)

diff --git a/test/send-files b/test/send-files
index caf00b9..85ea3f5 100755
--- a/test/send-files
+++ b/test/send-files
@@ -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()
-- 
1.7.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-25 13:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-05 18:46 [PATCH] Support relative path on send-files example Danilo Cesar Lemes de Paula
2010-03-25 13:13 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).