summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2014-09-29 08:44:00 +0400
committerStefano Karapetsas <[email protected]>2014-09-29 12:19:59 +0200
commitca95cd34c5c6f9f9e5873b4732338e23c30988e8 (patch)
tree92755d3464c4287ab04b4b5c16d33ab4627e4e6e
parent5536708199657d3c6ca358507c29a38fcf047e83 (diff)
downloadmate-session-manager-ca95cd34c5c6f9f9e5873b4732338e23c30988e8.tar.bz2
mate-session-manager-ca95cd34c5c6f9f9e5873b4732338e23c30988e8.tar.xz
Set XDG_CURRENT_DESKTOP if unset
XDG_CURRENT_DESKTOP is used by glib >= 2.42 at g_desktop_app_info* functions Original GNOME commit: https://git.gnome.org/browse/gnome-session/commit/?id=1db085ce7e5197b28ab24a3ec54d888efe98fcb4 Closes https://github.com/mate-desktop/mate-session-manager/pull/62
-rw-r--r--mate-session/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mate-session/main.c b/mate-session/main.c
index 1039368..d51aaf2 100644
--- a/mate-session/main.c
+++ b/mate-session/main.c
@@ -597,6 +597,9 @@ int main(int argc, char** argv)
mdm_log_init();
mdm_log_set_debug(debug);
+ if (g_getenv ("XDG_CURRENT_DESKTOP") == NULL)
+ gsm_util_setenv ("XDG_CURRENT_DESKTOP", "MATE");
+
/* Set DISPLAY explicitly for all our children, in case --display
* was specified on the command line.
*/