Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 284350 | Differences between
and this patch

Collapse All | Expand All

(-)scrotwm.orig/scrotwm.c (-1 / +5 lines)
Lines 1086-1091 Link Here
1086
{
1086
{
1087
	char			*ret;
1087
	char			*ret;
1088
	int			si;
1088
	int			si;
1089
    struct stat sb;
1089
1090
1090
	DNPRINTF(SWM_D_MISC, "spawn: %s\n", args->argv[0]);
1091
	DNPRINTF(SWM_D_MISC, "spawn: %s\n", args->argv[0]);
1091
	/*
1092
	/*
Lines 1096-1102 Link Here
1096
		if (fork() == 0) {
1097
		if (fork() == 0) {
1097
			if (display)
1098
			if (display)
1098
				close(ConnectionNumber(display));
1099
				close(ConnectionNumber(display));
1099
      			setenv("LD_PRELOAD", SWM_LIB, 1);
1100
            if (stat(SWM_LIB, &sb) != -1) {
1101
                if (S_ISREG(sb.st_mode))
1102
                    setenv("LD_PRELOAD", SWM_LIB, 1);
1103
            }
1100
			if (asprintf(&ret, "%d", r->ws->idx)) {
1104
			if (asprintf(&ret, "%d", r->ws->idx)) {
1101
				setenv("_SWM_WS", ret, 1);
1105
				setenv("_SWM_WS", ret, 1);
1102
				free(ret);
1106
				free(ret);

Return to bug 284350