2 * Copyright (C) 2013 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18import Ubuntu.Application 0.1
19import LightDM 0.1 as LightDM
20import SessionBroadcast 0.1
25import "Components/Math.js" as MathLocal
30 function activateApplication(desktopFile, argument) {
31 SessionBroadcast.requestApplicationStart(LightDM.Greeter.authenticationUser, desktopFile)
37 hides: [launcher, panel.indicators]
40 showAnimation: StandardAnimation { property: "opacity"; to: 1 }
41 hideAnimation: StandardAnimation { property: "opacity"; to: 0 }
43 x: required ? 0 : - width
45 height: parent.height - panel.panelHeight
46 background: shell.background
48 onUnlocked: lockscreen.hide()
49 onCancel: greeter.show()
51 Component.onCompleted: {
52 if (LightDM.Users.count == 1) {
53 LightDM.Greeter.authenticate(LightDM.Users.data(0, LightDM.UserRoles.NameRole))
60 target: LightDM.Greeter
63 if (LightDM.Users.count == 1) {
64 // TODO: There's no better way for now to determine if its a PIN or a passphrase.
66 lockscreen.alphaNumeric = false
68 lockscreen.alphaNumeric = true
70 lockscreen.placeholderText = i18n.tr("Please enter %1").arg(text);
81 hides: [launcher, panel.indicators]
86 height: parent.height - panel.panelHeight
88 dragHandleWidth: shell.edgeSize
92 LightDM.Greeter.startSessionSync();
98 // If there is only one user, we start authenticating with that one here.
99 // If there are more users, the Greeter will handle that
100 if (LightDM.Users.count == 1) {
101 LightDM.Greeter.authenticate(LightDM.Users.data(0, LightDM.UserRoles.NameRole));
104 greeter.forceActiveFocus();
106 else if (LightDM.Greeter.promptless)
112 // Update launcher items for new user
113 var user = LightDM.Users.data(uid, LightDM.UserRoles.NameRole);
114 AccountsService.user = user;
115 LauncherModel.setUser(user);
118 onLeftTeaserPressedChanged: {
119 if (leftTeaserPressed) {
132 objectName: "greeterRevealer"
134 property real animatedProgress: MathLocal.clamp(-dragPosition / closedValue, 0, 1)
137 height: greeter.height
138 handleSize: shell.edgeSize
139 orientation: Qt.Horizontal
140 enabled: !greeter.locked
150 anchors.fill: parent //because this draws indicator menus
151 indicatorsMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
154 available: !edgeDemo.active
156 fullscreenMode: false
163 anchors.top: parent.top
164 anchors.bottom: parent.bottom
166 dragAreaWidth: shell.edgeSize
167 available: greeter.narrowMode && !edgeDemo.active
168 onLauncherApplicationSelected: {
169 shell.activateApplication(name)
173 panel.indicators.hide()
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list