Mark desktop shortcuts as trusted to suppress XFCE warning

Sets xfce-exe-checksum metadata on .desktop files so XFCE
doesn't show the "Untrusted application launcher" dialog.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
adadrag
2026-03-12 16:36:40 +00:00
parent 6c3b8b1a85
commit 8c19f29b92

View File

@@ -275,6 +275,12 @@ StartupNotify=true
SHORTCUT
chmod +x /root/Desktop/openclaw-dashboard.desktop"
# Mark all desktop shortcuts as trusted (suppresses XFCE "Untrusted application" warning)
ct_exec "
for f in /root/Desktop/*.desktop; do
gio set \"\$f\" metadata::xfce-exe-checksum \"\$(sha256sum \"\$f\" | cut -d' ' -f1)\"
done
"
ok "Desktop shortcuts created."
# ─── Create systemd services ─────────────────────────────────────────────────