summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2010-11-09 21:55:20 +0100
committerJannis Pohlmann <jannis@xfce.org>2010-11-09 21:55:20 +0100
commit02b132833ea4453f4fafe5be0c216435b1e338d1 (patch)
treedb4fbe197615a8c9b0dcceeb1790603f03e58aa9 /examples
parenta993255980796bbbca9fcff40eea9df49cf675b6 (diff)
downloadthunar-02b132833ea4453f4fafe5be0c216435b1e338d1.tar.gz
Fix the sample D-Bus client for the org.xfce.FileManager interface.
Make sure to always pass a fourth startup_id parameter to all D-Bus methods (add the parameter in the comments as well).
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/xfce-file-manager.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/xfce-file-manager.py b/examples/xfce-file-manager.py
index 0ff3c27b..aba5fa69 100755
--- a/examples/xfce-file-manager.py
+++ b/examples/xfce-file-manager.py
@@ -41,26 +41,26 @@ xfce_file_manager = dbus.Interface(xfce_file_manager_object, 'org.xfce.FileManag
# for example, to open a new file manager window for /tmp, you
# would use the following method:
#
-# xfce_file_manager.DisplayFolder('/tmp', '')
+# xfce_file_manager.DisplayFolder('/tmp', '', '')
#
# or, if you also want to pre-select a file in the folder, you
# can use:
#
-# xfce_file_manager.DisplayFolderAndSelect('/tmp', 'file.txt', '')
+# xfce_file_manager.DisplayFolderAndSelect('/tmp', 'file.txt', '', '')
#
# else if you want to display the file managers preferences
# dialog, you'd use
#
-# xfce_file_manager.DisplayPreferencesDialog('')
+# xfce_file_manager.DisplayPreferencesDialog('', '')
#
# and to open the file properties dialog of a given file, use
#
-# xfce_file_manager.DisplayFileProperties('/path/to/file', '')
+# xfce_file_manager.DisplayFileProperties('/path/to/file', '', '')
#
# and last but not least, to launch a given file (or open
# a folder), use
#
-# xfce_file_manager.Launch('/path/to/file', '')
+# xfce_file_manager.Launch('/path/to/file', '', '')
#
# See the thunar-dbus-service-infos.xml file for the exact
# interface definition.
@@ -68,4 +68,4 @@ xfce_file_manager = dbus.Interface(xfce_file_manager_object, 'org.xfce.FileManag
# We just popup a new window for the root directory here to
# demonstrate that it works. ;-)
-xfce_file_manager.Launch('/', '')
+xfce_file_manager.Launch('/', '', '')