[geary/mjog/data-location-migration: 4/9] Application.Client: Rename app user dirs to home dirs
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/data-location-migration: 4/9] Application.Client: Rename app user dirs to home dirs
- Date: Tue, 13 Oct 2020 14:02:46 +0000 (UTC)
commit 13a2fe87de446e8f1fa06d0d6f73861c2d0bdfb0
Author: Michael Gratton <mike vee net>
Date: Tue Oct 13 23:40:02 2020 +1100
Application.Client: Rename app user dirs to home dirs
src/client/application/application-client.vala | 12 ++++++------
src/client/application/application-controller.vala | 8 +++++---
2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/client/application/application-client.vala b/src/client/application/application-client.vala
index e7f980c02..9bd05c31c 100644
--- a/src/client/application/application-client.vala
+++ b/src/client/application/application-client.vala
@@ -759,22 +759,22 @@ public class Application.Client : Gtk.Application {
}
}
- /** Returns the application's base user configuration directory. */
- public GLib.File get_user_config_directory() {
+ /** Returns the application's base home configuration directory. */
+ public GLib.File get_home_config_directory() {
return GLib.File.new_for_path(
Environment.get_user_config_dir()
).get_child("geary");
}
- /** Returns the application's base user cache directory. */
- public GLib.File get_user_cache_directory() {
+ /** Returns the application's base home cache directory. */
+ public GLib.File get_home_cache_directory() {
return GLib.File.new_for_path(
GLib.Environment.get_user_cache_dir()
).get_child("geary");
}
- /** Returns the application's base user data directory. */
- public GLib.File get_user_data_directory() {
+ /** Returns the application's base home data directory. */
+ public GLib.File get_home_data_directory() {
return GLib.File.new_for_path(
GLib.Environment.get_user_data_dir()
).get_child("geary");
diff --git a/src/client/application/application-controller.vala
b/src/client/application/application-controller.vala
index d7b2dbda9..7ad91f1da 100644
--- a/src/client/application/application-controller.vala
+++ b/src/client/application/application-controller.vala
@@ -125,8 +125,8 @@ internal class Application.Controller :
this.application = application;
this.controller_open = cancellable;
- GLib.File config_dir = application.get_user_config_directory();
- GLib.File data_dir = application.get_user_data_directory();
+ GLib.File config_dir = application.get_home_config_directory();
+ GLib.File data_dir = application.get_home_data_directory();
// This initializes the IconFactory, important to do before
// the actions are created (as they refer to some of Geary's
@@ -140,7 +140,9 @@ internal class Application.Controller :
ClientWebView.init_web_context(
this.application.config,
this.application.get_web_extensions_dir(),
- this.application.get_user_cache_directory().get_child("web-resources")
+ this.application.get_home_cache_directory().get_child(
+ "web-resources"
+ )
);
ClientWebView.load_resources(config_dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]