Fix logout command setting
This commit is contained in:
parent
198c0c3c72
commit
b9e66fb3e5
1 changed files with 1 additions and 2 deletions
3
ulock.c
3
ulock.c
|
@ -326,7 +326,7 @@ static void load_config(void) {
|
|||
|
||||
logoutTime = g_key_file_get_integer(keyFile, "ulock", "logout_timeout", NULL);
|
||||
|
||||
gchar *logoutCommandConfig = g_key_file_get_string(keyFile, "ulock", "logout_string", NULL);
|
||||
gchar *logoutCommandConfig = g_key_file_get_string(keyFile, "ulock", "logout_command", NULL);
|
||||
if (logoutCommandConfig)
|
||||
logoutCommand = strdup(logoutCommandConfig);
|
||||
|
||||
|
@ -335,7 +335,6 @@ static void load_config(void) {
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
get_username();
|
||||
logoutCommand = strdup("echo foo");
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
bindtextdomain("ulock", PREFIX "/share/locale");
|
||||
|
|
Reference in a new issue