[gnome-sharing-service] make the file paths absolute when sending them over dbus
- From: Daniel G. Siegel <dgsiegel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sharing-service] make the file paths absolute when sending them over dbus
- Date: Sun, 4 Jul 2010 00:23:12 +0000 (UTC)
commit 8d892693d6530785a9c215ee2e5ddffc3125b0b2
Author: daniel g. siegel <dgsiegel gnome org>
Date: Sun Jul 4 02:21:59 2010 +0200
make the file paths absolute when sending them over dbus
src/gnome-share-file | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-share-file b/src/gnome-share-file
index fa44b2a..b73c9d0 100755
--- a/src/gnome-share-file
+++ b/src/gnome-share-file
@@ -11,6 +11,9 @@ if len(sys.argv) <= 1:
files = sys.argv
del files[0]
+for i, item in enumerate(files):
+ files[i] = os.path.abspath(item)
+
remote_object = bus.get_object("org.gnome.SharingService",
"/org/gnome/SharingService")
remote_reply = remote_object.share_files(files, dbus_interface="org.gnome.SharingService")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]