-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flakpak: fix broken autostart feature
- Loading branch information
1 parent
7ee9cdf
commit 20bee24
Showing
5 changed files
with
128 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/engine/dconf-engine-source-user.c b/engine/dconf-engine-source-user.c | ||
index 1657875..e4f8786 100644 | ||
--- a/engine/dconf-engine-source-user.c | ||
+++ b/engine/dconf-engine-source-user.c | ||
@@ -39,11 +39,17 @@ dconf_engine_source_user_open_gvdb (const gchar *name) | ||
{ | ||
GvdbTable *table; | ||
gchar *filename; | ||
+ const gchar *override; | ||
+ | ||
+ override = g_getenv ("DCONF_USER_CONFIG_DIR"); | ||
+ if (override == NULL) | ||
+ filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL); | ||
+ else | ||
+ filename = g_build_filename (g_get_home_dir (), override, name, NULL); | ||
|
||
/* This can fail in the normal case of the user not having any | ||
* settings. That's OK and it shouldn't be considered as an error. | ||
*/ | ||
- filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL); | ||
table = gvdb_table_new (filename, FALSE, NULL); | ||
g_free (filename); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters