From: Danilo Cesar Lemes de Paula <danilo.eu@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Danilo Cesar Lemes de Paula <danilo.cesar@openbossa.org>
Subject: [PATCH] Support relative path on send-files example
Date: Fri, 5 Mar 2010 15:46:46 -0300 [thread overview]
Message-ID: <1267814806-6806-1-git-send-email-danilo.cesar@openbossa.org> (raw)
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
next reply other threads:[~2010-03-05 18:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-05 18:46 Danilo Cesar Lemes de Paula [this message]
2010-03-25 13:13 ` [PATCH] Support relative path on send-files example Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1267814806-6806-1-git-send-email-danilo.cesar@openbossa.org \
--to=danilo.eu@gmail.com \
--cc=danilo.cesar@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).