soc.2010.detachablepurple: 98ff9df6: Forbade writing of files in the user dir...
gillux at soc.pidgin.im
gillux at soc.pidgin.im
Mon Aug 9 23:58:41 EDT 2010
----------------------------------------------------------------------
Revision: 98ff9df62b5cef292300e0cb0a79268f67c8110d
Parent: 25b821b75a6179fee0aa580f3e725a95fba7062a
Author: gillux at soc.pidgin.im
Date: 08/09/10 23:48:22
Branch: im.pidgin.soc.2010.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/98ff9df62b5cef292300e0cb0a79268f67c8110d
Changelog:
Forbade writing of files in the user directory for clients. This may be too
much prohibition as maybe some of the files (icons cache ?) could be needed
by the clients, but for the moment this solves many writing conflicts when
having client and daemon ran by the same user of the same system.
Changes against parent 25b821b75a6179fee0aa580f3e725a95fba7062a
patched libpurple/util.c
-------------- next part --------------
============================================================
--- libpurple/util.c 8ce3ed9ff8cc35c79bea267992c15843d0057006
+++ libpurple/util.c 3fe531b1b85a9dd8ae480f5012a7bda7576e3c6b
@@ -2505,6 +2505,11 @@ purple_util_write_data_to_file(const cha
g_return_val_if_fail(user_dir != NULL, FALSE);
+ /* In remote mode we load our data from the daemon rather than local
+ * files. Writing these would mess up with non-remote purple apps. */
+ if (purple_core_is_remote_mode())
+ return TRUE; /* yeah yeah we wrote it... ;) */
+
purple_debug_info("util", "Writing file %s to directory %s\n",
filename, user_dir);
More information about the Commits
mailing list