1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
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

12 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)
{