Hi Oliver: Am 02.01.12 12:11 schrieb(en) Oliver Eichler:
the check is well done. I added the default button to the dialog, too, and committed to svn. I will have a look if I can restore the settings in the wizard.Ok, done it. It's in svn.
Cool, very nice, and a real improvement IMHO! Am 02.01.12 12:28 schrieb(en) Oliver Eichler:
DBus is an IPC (Inter Process Call) API that allows applications to execute other application's functions. In this case it a data exchange with OCM (Open Cache Manager).
Thanks for the clarification...
I have no idea what you get on Win or Linux; on OS X the returned path is "/Users/<user name>/Library/Caches/QLandkarteGT/QLandkarteGT" (as both the application and the organisation name are set to "QLandkarteGT") which is the "usual" place a OS X user would expect (actually *including* the space in "QLandkarte GT", but that would be nitpicking...). The advantage is that if the user has an encrypted home folder (FileVault), the cache will also be protected.On Linux it would place the cache into the user's home path. I don't think that's a good location for a default.
I see - then it should be the default for OS X only (and maybe for Windows?), patch attached. Cheers, Albrecht.
Index: src/CResources.cpp
===================================================================
--- src/CResources.cpp (Revision 3151)
+++ src/CResources.cpp (Arbeitskopie)
@@ -178,8 +178,13 @@
}
else
{
+#ifndef Q_WS_MAC
struct passwd * userInfo = getpwuid(getuid());
cacheFolder = QDir::tempPath() + "/qlandkarteqt-" + userInfo->pw_name + "/cache/";
+#else
+ // Mac OS X: points to /Users/<user name>/Library/Caches/QLandkarteGT/QLandkarteGT
+ cacheFolder = QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
+#endif
}
#else
cacheFolder = m_pathMapCache.absolutePath();
pgpyJph8f5TTG.pgp
Description: PGP signature
------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
