mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 15:26:22 +00:00
Move xgd functions
This commit is contained in:
@@ -834,7 +834,7 @@ plugins_shutdown(void)
|
||||
char*
|
||||
plugins_get_dir(void)
|
||||
{
|
||||
gchar *xdg_data = xdg_get_data_home();
|
||||
gchar *xdg_data = files_get_xdg_data_home();
|
||||
GString *plugins_dir = g_string_new(xdg_data);
|
||||
g_string_append(plugins_dir, "/profanity/plugins");
|
||||
char *result = strdup(plugins_dir->str);
|
||||
|
||||
@@ -49,7 +49,7 @@ static void _save_settings(void);
|
||||
void
|
||||
plugin_settings_init(void)
|
||||
{
|
||||
gchar *xdg_data = xdg_get_data_home();
|
||||
gchar *xdg_data = files_get_xdg_data_home();
|
||||
GString *fileloc = g_string_new(xdg_data);
|
||||
g_string_append(fileloc, "/profanity/plugin_settings");
|
||||
g_free(xdg_data);
|
||||
@@ -135,7 +135,7 @@ _save_settings(void)
|
||||
gsize g_data_size;
|
||||
gchar *g_data = g_key_file_to_data(settings, &g_data_size, NULL);
|
||||
|
||||
gchar *xdg_data = xdg_get_data_home();
|
||||
gchar *xdg_data = files_get_xdg_data_home();
|
||||
GString *fileloc = g_string_new(xdg_data);
|
||||
g_free(xdg_data);
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ static GKeyFile *themes;
|
||||
void
|
||||
plugin_themes_init(void)
|
||||
{
|
||||
gchar *xdg_data = xdg_get_data_home();
|
||||
gchar *xdg_data = files_get_xdg_data_home();
|
||||
GString *fileloc = g_string_new(xdg_data);
|
||||
g_string_append(fileloc, "/profanity/plugin_themes");
|
||||
g_free(xdg_data);
|
||||
|
||||
Reference in New Issue
Block a user