1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

bug fixes

This commit is contained in:
kojima
1999-05-14 04:30:01 +00:00
parent a98624ab84
commit 39513b9f35
9 changed files with 37 additions and 35 deletions

View File

@@ -302,8 +302,11 @@ static void
execInitScript()
{
char *file;
file = wfindfile(DEF_CONFIG_PATHS, DEF_INIT_SCRIPT);
char *paths = wstrappend(wusergnusteppath(), ":"DEF_CONFIG_PATHS);
file = wfindfile(paths, DEF_INIT_SCRIPT);
free(paths);
if (file) {
if (system(file) != 0) {
wsyserror(_("%s:could not execute initialization script"), file);
@@ -324,8 +327,11 @@ void
ExecExitScript()
{
char *file;
file = wfindfile(DEF_CONFIG_PATHS, DEF_EXIT_SCRIPT);
char *paths = wstrappend(wusergnusteppath(), ":"DEF_CONFIG_PATHS);
file = wfindfile(paths, DEF_EXIT_SCRIPT);
free(paths);
if (file) {
if (system(file) != 0) {
wsyserror(_("%s:could not execute exit script"), file);