From cfc6ca44874961ec468147111745c34a5bf1f9c0 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 2 May 2014 11:31:46 +1200 Subject: Changed config file name, spruced default config up --- Makefile | 2 +- data/trayfreq.config | 9 --------- trayfreq.c | 4 ++-- 3 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 data/trayfreq.config diff --git a/Makefile b/Makefile index 44a3eb7..1a5609c 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ install: mkdir -p $(INSTALL_PATH)/usr/share/locale/fr/LC_MESSAGES/ cp lc/fr.mo $(INSTALL_PATH)/usr/share/locale/fr/LC_MESSAGES/trayfreq.mo - install -Dm 644 data/trayfreq.config $(INSTALL_PATH)/usr/share/trayfreq/trayfreq.config + install -Dm 644 data/trayfreq.conf $(INSTALL_PATH)/usr/share/trayfreq/trayfreq.conf install -Dm 644 data/trayfreq.desktop $(INSTALL_PATH)/etc/xdg/autostart/trayfreq.desktop install -Dm 755 trayfreq $(INSTALL_PATH)/usr/bin/trayfreq install -Dm 755 trayfreq-set $(INSTALL_PATH)/usr/bin/trayfreq-set diff --git a/data/trayfreq.config b/data/trayfreq.config deleted file mode 100644 index 8783104..0000000 --- a/data/trayfreq.config +++ /dev/null @@ -1,9 +0,0 @@ -#[battery] -#show=1 -#governor=powersave -#[ac] -#governor=ondemand -#[governor] -#default=ondemand -#[frequency] -#default=800000 diff --git a/trayfreq.c b/trayfreq.c index 7e5d8d4..4c23982 100644 --- a/trayfreq.c +++ b/trayfreq.c @@ -42,7 +42,7 @@ void config_init() gboolean home_config_exists; config.key_file = NULL; - config.file_name = g_strconcat(getenv("HOME"), "/.trayfreq.config", NULL); + config.file_name = g_strconcat(getenv("HOME"), "/.trayfreq.conf", NULL); // Check if ~/.trayfreq.config exists @@ -60,7 +60,7 @@ void config_init() } if(!home_config_exists) - config.file_name = g_strconcat("/usr/share/trayfreq/trayfreq.config", NULL); + config.file_name = g_strconcat("/usr/share/trayfreq/trayfreq.conf", NULL); gboolean success = config_open(&config); if(!success) -- cgit v1.1