[gnote] Change sync cache dir
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Change sync cache dir
- Date: Sun, 17 Jun 2012 17:54:24 +0000 (UTC)
commit 338154e9b01cfccd7f3bbef94385781e49b72640
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Sun Jun 17 20:26:27 2012 +0300
Change sync cache dir
Include subdirs for gnote and user
src/synchronization/filesystemsyncserver.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/synchronization/filesystemsyncserver.cpp b/src/synchronization/filesystemsyncserver.cpp
index 595e97d..4b61779 100644
--- a/src/synchronization/filesystemsyncserver.cpp
+++ b/src/synchronization/filesystemsyncserver.cpp
@@ -61,7 +61,7 @@ SyncServer::Ptr FileSystemSyncServer::create(const std::string & path)
FileSystemSyncServer::FileSystemSyncServer(const std::string & localSyncPath)
: m_server_path(localSyncPath)
- , m_cache_path("/tmp/gnote")
+ , m_cache_path(Glib::build_filename(Glib::get_tmp_dir(), Glib::get_user_name(), "gnote"))
{
if(!sharp::directory_exists(m_server_path)) {
throw std::invalid_argument(("Directory not found: " + m_server_path).c_str());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]