projects
/
platform
/
upstream
/
glib-networking.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ff570a
)
proxy/gnome: check GNOME_DESKTOP_SESSION_ID too
author
Dan Winship
<danw@gnome.org>
Tue, 4 Jun 2013 23:21:10 +0000
(20:21 -0300)
committer
Dan Winship
<danw@gnome.org>
Tue, 4 Jun 2013 23:23:06 +0000
(20:23 -0300)
It claims to be deprecated, but $GNOME_DESKTOP_SESSION_ID seems to be
the only reliable identifier of GNOME-ness (other than probing D-Bus,
which we can't do from here).
https://bugzilla.gnome.org/show_bug.cgi?id=701377
proxy/gnome/gproxyresolvergnome.c
patch
|
blob
|
history
diff --git
a/proxy/gnome/gproxyresolvergnome.c
b/proxy/gnome/gproxyresolvergnome.c
index
3a7e82e
..
464e3d6
100644
(file)
--- a/
proxy/gnome/gproxyresolvergnome.c
+++ b/
proxy/gnome/gproxyresolvergnome.c
@@
-315,6
+315,9
@@
g_proxy_resolver_gnome_is_supported (GProxyResolver *object)
{
const char *session;
+ if (g_getenv ("GNOME_DESKTOP_SESSION_ID"))
+ return TRUE;
+
session = g_getenv ("DESKTOP_SESSION");
if (session == NULL)
return FALSE;