[geary] Fix some build issues arising from user config/data dir split. Bug 741883.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Fix some build issues arising from user config/data dir split. Bug 741883.
- Date: Tue, 12 Jul 2016 05:55:41 +0000 (UTC)
commit a81cc78bb0b22a3e00368962ad3f8d8eede08e4d
Author: Michael James Gratton <mike vee net>
Date: Tue Jul 12 15:55:27 2016 +1000
Fix some build issues arising from user config/data dir split. Bug 741883.
src/client/application/geary-controller.vala | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index 4b4fac3..4403b09 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -256,8 +256,12 @@ public class GearyController : Geary.BaseObject {
// Start Geary.
try {
- yield Geary.Engine.instance.open_async(GearyApplication.instance.get_user_data_directory(),
- GearyApplication.instance.get_resource_directory(), new SecretMediator());
+ yield Geary.Engine.instance.open_async(
+ GearyApplication.instance.get_user_config_directory(),
+ GearyApplication.instance.get_user_data_directory(),
+ GearyApplication.instance.get_resource_directory(),
+ new SecretMediator()
+ );
if (Geary.Engine.instance.get_accounts().size == 0) {
create_account();
}
@@ -1134,7 +1138,7 @@ public class GearyController : Geary.BaseObject {
AlertDialog dialog = new QuestionDialog(main_window,
_("Unable to open the database for %s").printf(account.information.email),
_("There was an error opening the local mail database for this account. This is possibly due to
corruption of the database file in this directory:\n\n%s\n\nGeary can rebuild the database and re-synchronize
with the server or exit.\n\nRebuilding the database will destroy all local email and its attachments. <b>The
mail on the your server will not be affected.</b>")
- .printf(account.information.settings_dir.get_path()),
+ .printf(account.information.data_dir.get_path()),
_("_Rebuild"), _("E_xit"));
dialog.use_secondary_markup(true);
switch (dialog.run()) {
@@ -1169,7 +1173,7 @@ public class GearyController : Geary.BaseObject {
ErrorDialog dialog = new ErrorDialog(main_window,
_("Unable to open local mailbox for %s").printf(account.information.email),
_("There was an error opening the local mail database for this account. This is possibly due to
a file permissions problem.\n\nPlease check that you have read/write permissions for all files in this
directory:\n\n%s")
- .printf(account.information.settings_dir.get_path()));
+ .printf(account.information.data_dir.get_path()));
dialog.run();
GearyApplication.instance.exit(1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]