{"action":"opened","issue":{"url":"https://api.github.com/repos/mate-desktop/mate-session-manager/issues/86","labels_url":"https://api.github.com/repos/mate-desktop/mate-session-manager/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/mate-desktop/mate-session-manager/issues/86/comments","events_url":"https://api.github.com/repos/mate-desktop/mate-session-manager/issues/86/events","html_url":"https://github.com/mate-desktop/mate-session-manager/issues/86","id":89415228,"number":86,"title":"XDG_CURRENT_DESKTOP not set","user":{"login":"cygwinports","id":1654669,"avatar_url":"https://avatars.githubusercontent.com/u/1654669?v=3","gravatar_id":"","url":"https://api.github.com/users/cygwinports","html_url":"https://github.com/cygwinports","followers_url":"https://api.github.com/users/cygwinports/followers","following_url":"https://api.github.com/users/cygwinports/following{/other_user}","gists_url":"https://api.github.com/users/cygwinports/gists{/gist_id}","starred_url":"https://api.github.com/users/cygwinports/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cygwinports/subscriptions","organizations_url":"https://api.github.com/users/cygwinports/orgs","repos_url":"https://api.github.com/users/cygwinports/repos","events_url":"https://api.github.com/users/cygwinports/events{/privacy}","received_events_url":"https://api.github.com/users/cygwinports/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T22:45:27Z","updated_at":"2015-06-18T22:45:27Z","closed_at":null,"body":"In MATE (tested on Fedora 21), `XDG_CURRENT_DESKTOP` is empty.  This can used by GIO to set desktop-specific default applications (e.g. so that pluma is the default text editor even when GNOME and gedit are installed):\r\n\r\nhttp://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html\r\nhttps://git.gnome.org/browse/glib/tree/gio/gdesktopappinfo.c\r\n\r\nThis can be accomplished by adding the following line to `data/mate.desktop.in` (which is installed as `$datadir/xsessions/mate.desktop`):\r\n\r\n    DesktopNames=MATE\r\n"}}