[gnome-settings-daemon/rhel-6.9: 6/25] gsd-dir-prefix.patch
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/rhel-6.9: 6/25] gsd-dir-prefix.patch
- Date: Wed, 8 Feb 2017 20:46:53 +0000 (UTC)
commit d37b3d5c0c12101963c0d2c57c541e7e6efab152
Author: Ray Strode <rstrode redhat com>
Date: Mon Nov 7 13:11:38 2016 -0500
gsd-dir-prefix.patch
plugins/font/gsd-font-manager.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/font/gsd-font-manager.c b/plugins/font/gsd-font-manager.c
index 7b6ce89..6dc224e 100644
--- a/plugins/font/gsd-font-manager.c
+++ b/plugins/font/gsd-font-manager.c
@@ -183,8 +183,13 @@ static char*
setup_dir (const char *font_dir_name, gboolean create)
{
char *font_dir;
+ const char *override;
- font_dir = g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir (), ".gnome2", "share", font_dir_name,
NULL);
+ override = g_getenv ("GNOME22_USER_DIR");
+ if (override)
+ font_dir = g_build_path (G_DIR_SEPARATOR_S, override, "share", font_dir_name, NULL);
+ else
+ font_dir = g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir (), ".gnome2", "share",
font_dir_name, NULL);
if (create) {
if (g_mkdir_with_parents (font_dir, 0755) != 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]