aboutsummaryrefslogtreecommitdiff
path: root/defaults.c
diff options
context:
space:
mode:
Diffstat (limited to 'defaults.c')
-rw-r--r--defaults.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/defaults.c b/defaults.c
index 926e1fd..79a9566 100644
--- a/defaults.c
+++ b/defaults.c
@@ -18,6 +18,8 @@
#include "defaults.h"
+#include <stdio.h>
+
char* _DEFAULT_GOV;
char* _DEFAULT_FREQ;
char* _DEFAULT_PROG;
@@ -25,6 +27,7 @@ char* _DEFAULT_BAT_GOV;
char* _DEFAULT_AC_GOV;
bool _DEFAULT_SHOW_BATTERY = TRUE;
bool _DEFAULT_USE_SUDO = FALSE;
+char _DEFAULT_THEME[2048]; // to do : make dynamic with malloc
void defaults_init()
{
@@ -34,5 +37,6 @@ void defaults_init()
_DEFAULT_BAT_GOV = NULL;
_DEFAULT_AC_GOV = NULL;
_DEFAULT_SHOW_BATTERY = TRUE;
- _DEFAULT_USE_SUDO = FALSE;
+ _DEFAULT_USE_SUDO = FALSE;
+ sprintf (_DEFAULT_THEME, SHAREDIR"/trayfreq/themes/default");
}