mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-30 21:04:13 +02:00
gio-launch-desktop: Don't alter stdout/stderr if not already the Journal
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Philip Withnall
parent
6c3e52bb1d
commit
f736414825
@@ -47,6 +47,8 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
#include "gjournal-private.h"
|
||||
|
||||
/*
|
||||
* write_all:
|
||||
* @fd: a file descriptor
|
||||
@@ -189,6 +191,9 @@ set_up_journal (const char *argv1)
|
||||
const char *slash;
|
||||
int fd;
|
||||
|
||||
if (!_g_fd_is_journal (STDOUT_FILENO) && !_g_fd_is_journal (STDERR_FILENO))
|
||||
return;
|
||||
|
||||
identifier = getenv ("GIO_LAUNCHED_DESKTOP_FILE");
|
||||
|
||||
if (identifier == NULL)
|
||||
|
Reference in New Issue
Block a user