LockScreen: more sizing tweaks

This commit is contained in:
lysec
2025-10-05 23:21:08 +02:00
parent 78f6c5f72d
commit 2cd4defa9f
9 changed files with 74 additions and 45 deletions
+9 -1
View File
@@ -67,7 +67,7 @@ Singleton {
elif command -v flatpak >/dev/null 2>&1 && _gpuscreenrecorder_flatpak_installed; then
flatpak run --command=gpu-screen-recorder --file-forwarding com.dec05eba.gpu_screen_recorder ${flags}
else
notify-send "gpu-screen-recorder not installed!" -u critical
echo "GPU_SCREEN_RECORDER_NOT_INSTALLED"
fi`
// Use Process instead of execDetached so we can monitor it and read stderr
@@ -109,6 +109,14 @@ Singleton {
// Process ended while we were pending - likely cancelled or error
isPending = false
pendingTimer.running = false
// Check if gpu-screen-recorder is not installed
const stdout = String(stdout.text || "").trim()
if (stdout === "GPU_SCREEN_RECORDER_NOT_INSTALLED") {
ToastService.showError(I18n.tr("toast.recording.not-installed"), I18n.tr("toast.recording.not-installed-desc"), 7000)
return
}
// If it failed to start, show a clear error toast with stderr
if (exitCode !== 0) {
const err = String(stderr.text || "").trim()