fix: show the autostart lines in lua on hyprland 0.56

This commit is contained in:
Felitendo committed 2026-09-26 19:33:15 +02:00
1 parent 9586f4cd3c
commit 0824c188fe
16 files changed
+73 -67

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ desktops, on Wayland:
On Hyprland and Niri, admin prompts and setting up a face need a polkit agent
(for example hyprpolkitagent). Hyprland without uwsm does not start the lock
screen part by itself: the menu shows the line to add to `hyprland.conf`.
screen part by itself: the menu shows what to add to its config.
<details>
<summary>Coming from plasma-face-unlock?</summary>
+5 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-23 22:32+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: German\n"
@@ -706,13 +706,13 @@ msgstr "Keine gültige Einstellung: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Dafür kann es nicht verwendet werden: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"Hyprland startet den Sperrbildschirm-Dienst nicht von selbst. Füge diese "
"Zeile in %s ein:"
"Hyprland startet den Sperrbildschirm-Dienst nicht von selbst. Füge das in %s "
"ein:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+4 -4
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Spanish\n"
@@ -711,13 +711,13 @@ msgstr "Ajuste no válido: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "No se puede usar para este servicio: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"Hyprland no inicia por sí solo el agente de la pantalla de bloqueo. Añade "
"esta línea a %s:"
"esto a %s:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+3 -3
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 09:30+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -655,10 +655,10 @@ msgstr ""
msgid "Not a service this can be used for: %s"
msgstr ""
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
#: src/lib/menu.sh
+4 -4
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: French\n"
@@ -716,13 +716,13 @@ msgstr "Réglage non valide : %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Ne peut pas servir pour ce service : %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"Hyprland ne démarre pas l'agent de l'écran de verrouillage tout seul. "
"Ajoutez cette ligne à %s :"
"Ajoutez ceci à %s :"
#: src/lib/menu.sh
msgid "Unlock with your face"
+4 -4
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Italian\n"
@@ -707,13 +707,13 @@ msgstr "Impostazione non valida: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Non si può usare per questo servizio: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"Hyprland non avvia da solo l'agente della schermata di blocco. Aggiungi "
"questa riga a %s:"
"questo a %s:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+5 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Japanese\n"
@@ -692,13 +692,13 @@ msgstr "無効な設定です: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "このサービスには使えません: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"Hyprland はロック画面エージェントを自動では起動しません。%s に次の行を追加し"
"てください:"
"Hyprland はロック画面エージェントを自動では起動しません。%s に次を追加してく"
"ださい:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+5 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Korean\n"
@@ -691,13 +691,13 @@ msgstr "올바르지 않은 설정: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "이 서비스에는 사용할 수 없습니다: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"Hyprland는 잠금 화면 에이전트를 스스로 시작하지 않습니다. %s에 다음 줄을 추가"
"하세요:"
"Hyprland는 잠금 화면 에이전트를 스스로 시작하지 않습니다. %s에 다음을 추가하"
"세요:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+5 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Dutch\n"
@@ -704,13 +704,13 @@ msgstr "Geen geldige instelling: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Hier kan het niet voor worden gebruikt: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"Hyprland start de agent voor het vergrendelscherm niet zelf. Voeg deze regel "
"toe aan %s:"
"Hyprland start de agent voor het vergrendelscherm niet zelf. Voeg dit toe "
"aan %s:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+4 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Polish\n"
@@ -703,12 +703,11 @@ msgstr "Nieprawidłowe ustawienie: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Nie można tego użyć dla tej usługi: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
msgstr ""
"Hyprland nie uruchamia sam agenta ekranu blokady. Dodaj ten wiersz do %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr "Hyprland nie uruchamia sam agenta ekranu blokady. Dodaj to do %s:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+5 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Brazilian Portuguese\n"
@@ -706,13 +706,13 @@ msgstr "Configuração inválida: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Não pode ser usado para este serviço: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"O Hyprland não inicia o agente da tela de bloqueio sozinho. Adicione esta "
"linha a %s:"
"O Hyprland não inicia o agente da tela de bloqueio sozinho. Adicione isto a "
"%s:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+4 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Russian\n"
@@ -705,12 +705,11 @@ msgstr "Недопустимая настройка: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Для этой службы использовать нельзя: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
msgstr ""
"Hyprland сам не запускает агент экрана блокировки. Добавьте эту строку в %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr "Hyprland сам не запускает агент экрана блокировки. Добавьте это в %s:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+5 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Turkish\n"
@@ -697,13 +697,13 @@ msgstr "Geçerli bir ayar değil: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Bunun için kullanılamaz: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr ""
"Hyprland kilit ekranı aracısını kendiliğinden başlatmaz. Bu satırı %s "
"dosyasına ekleyin:"
"Hyprland kilit ekranı aracısını kendiliğinden başlatmaz. Bunu %s dosyasına "
"ekleyin:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+4 -5
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Ukrainian\n"
@@ -705,12 +705,11 @@ msgstr "Неприпустиме налаштування: %s=%s"
msgid "Not a service this can be used for: %s"
msgstr "Для цієї служби використати не можна: %s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
msgstr ""
"Hyprland сам не запускає агент екрана блокування. Додайте цей рядок до %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr "Hyprland сам не запускає агент екрана блокування. Додайте це до %s:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+4 -4
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-25 08:20+0200\n"
"POT-Creation-Date: 2026-09-26 19:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Chinese (simplified)\n"
@@ -656,11 +656,11 @@ msgstr "无效的设置:%s=%s"
msgid "Not a service this can be used for: %s"
msgstr "不能用于此服务:%s"
#: src/lib/system.sh:135
#: src/lib/system.sh:138 src/lib/system.sh:143
#, sh-printf-format
msgid ""
"Hyprland does not start the lock screen agent by itself. Add this line to %s:"
msgstr "Hyprland 不会自动启动锁屏代理。请把这一行加入 %s:"
"Hyprland does not start the lock screen agent by itself. Add this to %s:"
msgstr "Hyprland 不会自动启动锁屏代理。请把以下内容加入 %s:"
#: src/lib/menu.sh
msgid "Unlock with your face"
+11 -2
View File
@@ -130,10 +130,19 @@ fu_agent_autostarts() {
}
# fu_agent_hint
# What to add to Hyprland's config, in the Lua it has since 0.56 or in the
# older format.
fu_agent_hint() {
# shellcheck disable=SC2088 # shown to the user, not a path to open
fu_note "$(fu_msg "Hyprland does not start the lock screen agent by itself. Add this line to %s:" "~/.config/hypr/hyprland.conf")"
fu_say " exec-once = systemctl --user start $FU_UNIT_AGENT"
if [[ -f $FU_XDG_CONFIG/hypr/hyprland.lua ]]; then
fu_note "$(fu_msg "Hyprland does not start the lock screen agent by itself. Add this to %s:" "~/.config/hypr/hyprland.lua")"
fu_say " hl.on(\"hyprland.start\", function ()"
fu_say " hl.exec_cmd(\"systemctl --user start $FU_UNIT_AGENT\")"
fu_say " end)"
else
fu_note "$(fu_msg "Hyprland does not start the lock screen agent by itself. Add this to %s:" "~/.config/hypr/hyprland.conf")"
fu_say " exec-once = systemctl --user start $FU_UNIT_AGENT"
fi
}
fu_agent_disable() {