freebsd-ports/ftp/pureadmin/files/patch-src-main.c
Martin Wilke 52667b1890 - Update to 0.4
PR:		116925
Submitted by:	ports fury
Thanks to:	beech/nox
2007-10-17 09:57:59 +00:00

11 lines
358 B
C

Index: src/main.c
@@ -126,7 +126,8 @@
gtk_init (&argc, &argv);
/* Restore DESKTOP_STARTUP_ID since, appearently, gtk_init() sometimes clears it */
// FIXME: Do we need to check if setenv() is available?
- setenv ("DESKTOP_STARTUP_ID", startup_id, TRUE);
+ if (startup_id)
+ setenv ("DESKTOP_STARTUP_ID", startup_id, TRUE);
if (getuid() != 0)
{