Browse Source

Fixes #24

sisyphus
Dustin Falgout 9 years ago
parent
commit
4a4a683392
  1. 5
      themes/antergos/index.html
  2. 6
      themes/antergos/js/greeter.js

5
themes/antergos/index.html

@ -1,4 +1,5 @@
<!DOCTYPE html><!-- <!DOCTYPE html>
<!--
~ Copyright © 2015 Antergos ~ Copyright © 2015 Antergos
~ ~
~ index.html ~ index.html
@ -15,7 +16,7 @@
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details. ~ GNU General Public License for more details.
~ ~
~ The following additional terms are in effect as per Section 7 of this license: ~ The following additional terms are in effect as per Section 7 of the license:
~ ~
~ The preservation of all legal notices and author attributions in ~ The preservation of all legal notices and author attributions in
~ the material or in the Appropriate Legal Notices displayed ~ the material or in the Appropriate Legal Notices displayed

6
themes/antergos/js/greeter.js

@ -270,8 +270,14 @@ $(document).ready(function () {
var usrSession = localStorage.getItem(userId); var usrSession = localStorage.getItem(userId);
if (! usrSession) {
var user_session = lightdm.get_user_session(userId);
usrSession = user_session ? user_session : lightdm.get_default_session();
localStorage.setItem(userId, usrSession);
}
log("usrSession: " + usrSession); log("usrSession: " + usrSession);
var usrSessionEl = "[data-session-id=" + usrSession + "]"; var usrSessionEl = "[data-session-id=" + usrSession + "]";
var usrSessionName = $(usrSessionEl).html(); var usrSessionName = $(usrSessionEl).html();
log("usrSessionName: " + usrSessionName); log("usrSessionName: " + usrSessionName);

Loading…
Cancel
Save