Index: ownerinfo.c =================================================================== RCS file: /cvs/gpe/base/gpe-conf/ownerinfo.c,v retrieving revision 1.30 diff -u -r1.30 ownerinfo.c --- ownerinfo.c 27 Mar 2004 16:00:52 -0000 1.30 +++ ownerinfo.c 20 Sep 2004 13:28:54 -0000 @@ -22,9 +22,6 @@ #include #include #include -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE /* Pour GlibC2 */ -#endif #include #include @@ -46,6 +43,7 @@ #define UPGRADE_ERROR -1 #define UPGRADE_NOT_NEEDED 0 +#define GPE_LOGIN_STARTUP "/etc/X11/Xsession.d/50autolock" GtkWidget *photofile; GtkWidget *name; @@ -59,6 +57,14 @@ FILE *fp; + +static void +restart_gpe_login(void) +{ + system("killall gpe-login"); + system(GPE_LOGIN_STARTUP); +} + GtkWidget *Ownerinfo_Build_Objects() { GtkWidget *table, *lHeader; @@ -391,6 +397,9 @@ fputs (owneraddress, fp); fclose (fp); suid_exec("CPOI",""); + /* more a hack than a feature */ + usleep(300000); + restart_gpe_login(); } else /* fp == NULL, something went wrong */ {