mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
52667b1890
PR: 116925 Submitted by: ports fury Thanks to: beech/nox
12 lines
358 B
C
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)
|
|
{
|