1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Look up .profanity in home

This commit is contained in:
James Booth 2012-05-10 03:37:24 +01:00
parent 6d5d41b33a
commit 57ad207dee

View File

@ -20,15 +20,18 @@
*
*/
#include <stdlib.h>
#include <glib.h>
#include "windows.h"
void prefs_load(void)
{
GKeyFile *g_prefs = g_key_file_new();
GString *prefs_loc = g_string_new(getenv("HOME"));
g_string_append(prefs_loc, "/.profanity");
g_key_file_load_from_file(g_prefs, "/home/james/.profanity",
GKeyFile *g_prefs = g_key_file_new();
g_key_file_load_from_file(g_prefs, prefs_loc->str,
G_KEY_FILE_NONE, NULL);
gboolean beep = g_key_file_get_boolean(g_prefs, "settings", "beep", NULL);