mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Look up .profanity in home
This commit is contained in:
parent
6d5d41b33a
commit
57ad207dee
@ -20,15 +20,18 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
|
||||||
void prefs_load(void)
|
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);
|
G_KEY_FILE_NONE, NULL);
|
||||||
|
|
||||||
gboolean beep = g_key_file_get_boolean(g_prefs, "settings", "beep", NULL);
|
gboolean beep = g_key_file_get_boolean(g_prefs, "settings", "beep", NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user