opnsense-ports/ftp/pureadmin/files/patch-src-main.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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)
{