diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-06-13 15:02:43 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-06-13 15:02:43 +0200 |
commit | 914c6752dd4ac3421311817d585cd687cec693e4 (patch) | |
tree | 95c569c99b738fd4e81bd43ef489d4ea81f2bfbd /src/plugins | |
parent | 74e061165a808883c5b17ff356bde60fa335cbda (diff) | |
download | profani-tty-914c6752dd4ac3421311817d585cd687cec693e4.tar.gz |
Fix reading/writing linked files
"base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/settings.c b/src/plugins/settings.c index 5ed32426..386c80a0 100644 --- a/src/plugins/settings.c +++ b/src/plugins/settings.c @@ -176,7 +176,7 @@ _save_settings(void) gchar *g_data = g_key_file_to_data(settings, &g_data_size, NULL); char *fileloc = files_get_data_path(FILE_PLUGIN_SETTINGS); - gchar *base = g_path_get_basename(fileloc); + gchar *base = g_path_get_dirname(fileloc); gchar *true_loc = get_file_or_linked(fileloc, base); g_free(base); g_file_set_contents(true_loc, g_data, g_data_size, NULL); |