[geary] Create configuration folder ~/.config/geary on fresh install as well to avoid crash. Bug 773305
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Create configuration folder ~/.config/geary on fresh install as well to avoid crash. Bug 773305
- Date: Fri, 21 Oct 2016 23:20:44 +0000 (UTC)
commit 329ca961501441fa7ef1df1678e30bb13bef055c
Author: Gautier Pelloux-Prayer <gautier+git damsy net>
Date: Fri Oct 21 11:23:34 2016 +0200
Create configuration folder ~/.config/geary on fresh install as well to avoid crash. Bug 773305
src/client/util/util-migrate.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/client/util/util-migrate.vala b/src/client/util/util-migrate.vala
index 17303c7..c4bcde3 100644
--- a/src/client/util/util-migrate.vala
+++ b/src/client/util/util-migrate.vala
@@ -25,10 +25,6 @@ namespace Migrate {
File new_config_file;
File old_config_file;
- // Return if Geary has never been run (~/.local/share/geary does not exist).
- if (!user_data_dir.query_exists())
- return;
-
// Create ~/.config/geary
try {
user_config_dir.make_directory_with_parents();
@@ -38,6 +34,10 @@ namespace Migrate {
throw err;
}
+ // Return if Geary has never been run (~/.local/share/geary does not exist).
+ if (!user_data_dir.query_exists())
+ return;
+
FileEnumerator enumerator;
enumerator = user_data_dir.enumerate_children ("standard::*",
FileQueryInfoFlags.NOFOLLOW_SYMLINKS, null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]