sessionMode: Add back external session modes

Since commit da4238ec68, external session modes are no longer
loaded during start-up; bring them back.

https://bugzilla.gnome.org/show_bug.cgi?id=720017
This commit is contained in:
Florian Müllner 2013-12-06 21:31:46 +01:00
parent 4d9a16f33b
commit 8e668ca633

View File

@ -148,6 +148,7 @@ const SessionMode = new Lang.Class({
Name: 'SessionMode', Name: 'SessionMode',
_init: function() { _init: function() {
_loadModes();
let isPrimary = (_modes[global.session_mode] && let isPrimary = (_modes[global.session_mode] &&
_modes[global.session_mode].isPrimary); _modes[global.session_mode].isPrimary);
let mode = isPrimary ? global.session_mode : 'user'; let mode = isPrimary ? global.session_mode : 'user';