entrance: move entrance config to /entrance/entrance.conf
This commit is contained in:
parent
3cca28d7d1
commit
824620a77c
|
@ -1,15 +1,15 @@
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = Makefile.in
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
||||||
EXTRA_DIST = entrance entrance.conf entrance.other entrance.service.in
|
EXTRA_DIST = entrance entrance.conf entrance.other entrance.service.in Xsession
|
||||||
|
|
||||||
SUBDIRS = themes
|
SUBDIRS = themes
|
||||||
|
|
||||||
pamdir = $(sysconfdir)/pam.d/
|
pamdir = $(sysconfdir)/pam.d/
|
||||||
pam_DATA = entrance
|
pam_DATA = entrance
|
||||||
|
|
||||||
confdir = $(sysconfdir)
|
confdir = $(sysconfdir)/entrance
|
||||||
conf_DATA = entrance.conf
|
conf_DATA = entrance.conf Xsession
|
||||||
|
|
||||||
sudoersdir = $(sysconfdir)/sudoers.d
|
sudoersdir = $(sysconfdir)/sudoers.d
|
||||||
sudoers_DATA = sudoers/entrance
|
sudoers_DATA = sudoers/entrance
|
||||||
|
|
|
@ -50,11 +50,11 @@ _users_get(void)
|
||||||
if (!ef)
|
if (!ef)
|
||||||
ef = eet_open("/var/cache/"PACKAGE"/"ENTRANCE_CONFIG_FILE,
|
ef = eet_open("/var/cache/"PACKAGE"/"ENTRANCE_CONFIG_FILE,
|
||||||
EET_FILE_MODE_WRITE);
|
EET_FILE_MODE_WRITE);
|
||||||
f = fopen(SYSTEM_CONFIG_DIR"/entrance.conf", "rb");
|
f = fopen(SYSTEM_CONFIG_DIR"/entrance/entrance.conf", "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
PACKAGE": Could not open "SYSTEM_CONFIG_DIR"/entrance.conf\n");
|
PACKAGE": Could not open "SYSTEM_CONFIG_DIR"/entrance/entrance.conf\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ entrance_config_init()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
stat(SYSTEM_CONFIG_DIR"/entrance.conf", &conf);
|
stat(SYSTEM_CONFIG_DIR"/entrance/entrance.conf", &conf);
|
||||||
if (cache.st_mtime < conf.st_mtime)
|
if (cache.st_mtime < conf.st_mtime)
|
||||||
{
|
{
|
||||||
_users_get();
|
_users_get();
|
||||||
|
|
Loading…
Reference in New Issue