tastytea
46dcd3cce3
All checks were successful
the build was successful
Package-Manager: Portage-2.3.51, Repoman-2.3.11 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
From aac0a0c4ad232723e8aecbab4dff99691b90a08e Mon Sep 17 00:00:00 2001
|
|
From: Siyan Panayotov <siyan@hellosiyan.com>
|
|
Date: Mon, 28 May 2018 21:22:04 +0200
|
|
Subject: [PATCH] Replace calls to getenv() with g_getenv()
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Using getenv() triggers compile errors in Open Build Service.
|
|
Thanks to Axel Köllhofer for the patch.
|
|
---
|
|
src/uni-utils.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/uni-utils.c b/src/uni-utils.c
|
|
index 8152848..1b4992a 100755
|
|
--- a/src/uni-utils.c
|
|
+++ b/src/uni-utils.c
|
|
@@ -106,10 +106,10 @@ uni_detect_desktop_environment ()
|
|
{
|
|
VnrPrefsDesktop environment = VNR_PREFS_DESKTOP_GNOME3;
|
|
|
|
- gchar *xdg_current_desktop = g_ascii_strup(getenv("XDG_CURRENT_DESKTOP"), -1);
|
|
- gchar *xdg_session_desktop = g_ascii_strup(getenv("XDG_SESSION_DESKTOP"), -1);
|
|
- gchar *desktop_session = g_ascii_strdown(getenv("DESKTOP_SESSION"), -1);
|
|
- gchar *gdmsession = g_ascii_strdown(getenv("GDMSESSION"), -1);
|
|
+ gchar *xdg_current_desktop = g_ascii_strup(g_getenv("XDG_CURRENT_DESKTOP"), -1);
|
|
+ gchar *xdg_session_desktop = g_ascii_strup(g_getenv("XDG_SESSION_DESKTOP"), -1);
|
|
+ gchar *desktop_session = g_ascii_strdown(g_getenv("DESKTOP_SESSION"), -1);
|
|
+ gchar *gdmsession = g_ascii_strdown(g_getenv("GDMSESSION"), -1);
|
|
|
|
if (!g_strcmp0(xdg_current_desktop, "GNOME") || !g_strcmp0(xdg_session_desktop, "GNOME"))
|
|
{
|
|
--
|
|
2.18.1
|
|
|