mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-23 11:35:25 -04:00
fdbbcafb6c
- Store a desktop session identity instead of relying on raw Exec commands - Resolve the current session desktop file when auto-login launches - Preserve legacy memory compatibility while ignoring stale lastSessionExec - Add regression coverage for stale /nix/store session paths - Autologin users should rerun the process
36 lines
921 B
QML
36 lines
921 B
QML
pragma Singleton
|
|
pragma ComponentBehavior: Bound
|
|
import QtQuick
|
|
import Quickshell
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
property string passwordBuffer: ""
|
|
property string username: ""
|
|
property string usernameInput: ""
|
|
property bool showPasswordInput: false
|
|
property string selectedSession: ""
|
|
property string selectedSessionPath: ""
|
|
property string selectedSessionDesktopId: ""
|
|
property string pamState: ""
|
|
property bool unlocking: false
|
|
|
|
property var sessionList: []
|
|
property var sessionExecs: []
|
|
property var sessionPaths: []
|
|
property var sessionDesktopIds: []
|
|
property int currentSessionIndex: 0
|
|
property var availableUsers: []
|
|
property int selectedUserIndex: -1
|
|
|
|
function reset() {
|
|
showPasswordInput = false;
|
|
username = "";
|
|
usernameInput = "";
|
|
passwordBuffer = "";
|
|
pamState = "";
|
|
selectedUserIndex = -1;
|
|
}
|
|
}
|