[conduit] Default sync directory is XDG_USER_DOCUMENTS



commit 52c70b344dcca22be7de55a94afb0ae19827d9bc
Author: John Stowers <john stowers gmail com>
Date:   Thu Sep 23 12:23:51 2010 +1200

    Default sync directory is XDG_USER_DOCUMENTS

 conduit/modules/FileModule/FileModule.py |    3 ++-
 configure.ac                             |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/conduit/modules/FileModule/FileModule.py b/conduit/modules/FileModule/FileModule.py
index 9a2e1ea..12cbec2 100644
--- a/conduit/modules/FileModule/FileModule.py
+++ b/conduit/modules/FileModule/FileModule.py
@@ -4,6 +4,7 @@ import logging
 log = logging.getLogger("modules.File")
 
 import gio
+import glib
 
 import conduit
 import conduit.dataproviders.DataProvider as DataProvider
@@ -86,7 +87,7 @@ class FolderTwoWay(FileDataProvider.FolderTwoWay, AutoSync.AutoSync):
     _description_ = _("Synchronize folders")
     _configurable_ = True
 
-    DEFAULT_FOLDER = "file://"+os.path.expanduser("~")
+    DEFAULT_FOLDER = "file://"+glib.get_user_special_dir(glib.USER_DIRECTORY_DOCUMENTS)
     DEFAULT_GROUP = "Home"
     DEFAULT_HIDDEN = False
     DEFAULT_COMPARE_IGNORE_MTIME = False
diff --git a/configure.ac b/configure.ac
index a86a5e7..1df830c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,6 +48,8 @@ AM_CHECK_PYMOD_VERSION([goocanvas], [pygoocanvas_version], [0.9.0], , AC_MSG_ERR
 AM_CHECK_PYMOD_VERSION([dbus], [__version__], [0.80.0], , AC_MSG_ERROR([Python module dbus >= 0.80.0 required to run Conduit]))
 AM_CHECK_PYMOD_VERSION([gio], [pygio_version], [2.16.1], , AC_MSG_ERROR([Python module gio >= 2.16.1 required to run Conduit]))
 AM_CHECK_PYMOD_VERSION([gudev], [__version__], [147.1], , AC_MSG_ERROR([Python module gudev >= 147.1 required to run Conduit]))
+AM_CHECK_PYMOD_VERSION([gobject], [pygobject_version], [2.21.1], , AC_MSG_ERROR([Python module gobject >= 2.21.1 required to run Conduit]))
+AM_CHECK_PYMOD_VERSION([glib], [pyglib_version], [2.21.1], , AC_MSG_ERROR([Python module glib >= 2.21.1 required to run Conduit]))
 
 ################################################################################
 # DBus



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]