mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-12 16:52:10 -04:00
greeter: try to fix random nixos issue
This commit is contained in:
@@ -14,6 +14,7 @@ Singleton {
|
|||||||
|
|
||||||
property string lastSessionId: ""
|
property string lastSessionId: ""
|
||||||
property string lastSuccessfulUser: ""
|
property string lastSuccessfulUser: ""
|
||||||
|
property bool memoryReady: false
|
||||||
property bool isLightMode: false
|
property bool isLightMode: false
|
||||||
property bool nightModeEnabled: false
|
property bool nightModeEnabled: false
|
||||||
|
|
||||||
@@ -75,11 +76,18 @@ Singleton {
|
|||||||
FileView {
|
FileView {
|
||||||
id: memoryFileView
|
id: memoryFileView
|
||||||
path: root.memoryFile
|
path: root.memoryFile
|
||||||
blockLoading: true
|
blockLoading: false
|
||||||
blockWrites: false
|
blockWrites: false
|
||||||
atomicWrites: true
|
atomicWrites: true
|
||||||
watchChanges: false
|
watchChanges: false
|
||||||
printErrors: false
|
printErrors: false
|
||||||
|
onLoaded: {
|
||||||
|
parseMemory(memoryFileView.text());
|
||||||
|
root.memoryReady = true;
|
||||||
|
}
|
||||||
|
onLoadFailed: {
|
||||||
|
root.memoryReady = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FileView {
|
FileView {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ Item {
|
|||||||
function onLastSuccessfulUserChanged() {
|
function onLastSuccessfulUserChanged() {
|
||||||
applyLastSuccessfulUser();
|
applyLastSuccessfulUser();
|
||||||
}
|
}
|
||||||
function onLastSessionIdChanged() {
|
function onMemoryReadyChanged() {
|
||||||
finalizeSessionSelection();
|
finalizeSessionSelection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1030,6 +1030,8 @@ Item {
|
|||||||
function finalizeSessionSelection() {
|
function finalizeSessionSelection() {
|
||||||
if (GreeterState.sessionList.length === 0)
|
if (GreeterState.sessionList.length === 0)
|
||||||
return;
|
return;
|
||||||
|
if (!GreetdMemory.memoryReady)
|
||||||
|
return;
|
||||||
|
|
||||||
const savedSession = GreetdMemory.lastSessionId;
|
const savedSession = GreetdMemory.lastSessionId;
|
||||||
if (savedSession) {
|
if (savedSession) {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Singleton {
|
|||||||
command: ["which", "cava"]
|
command: ["which", "cava"]
|
||||||
running: false
|
running: false
|
||||||
onExited: exitCode => {
|
onExited: exitCode => {
|
||||||
root.cavaAvailable = exitCode === 0;
|
root.cavaAvailable = exitCode === 0 && Quickshell.env("DMS_DISABLE_CAVA") !== "1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,10 +39,6 @@ sensitivity=30
|
|||||||
lower_cutoff_freq=50
|
lower_cutoff_freq=50
|
||||||
higher_cutoff_freq=12000
|
higher_cutoff_freq=12000
|
||||||
|
|
||||||
[input]
|
|
||||||
method=pipewire
|
|
||||||
source=auto
|
|
||||||
|
|
||||||
[output]
|
[output]
|
||||||
method=raw
|
method=raw
|
||||||
raw_target=/dev/stdout
|
raw_target=/dev/stdout
|
||||||
|
|||||||
Reference in New Issue
Block a user