8000 feat(attachments): ask before opening a program or a script by hanthor · Pull Request #598 · hyprlab/hylki · GitHub
[go: up one dir, main page]

Skip to content

feat(attachments): ask before opening a program or a script - #598

Open
hanthor wants to merge 2 commits into
hyprlab:mainfrom
tuna-os:feat/risky-attachments
Open

hanthor wants to merge 2 commits into
hyprlab:mainfrom
tuna-os:feat/risky-attachments

Conversation

@hanthor
@hanthor hanthor commented Nov 5, 2026
Copy link
Copy Markdown
Contributor

Opening an attachment hands it to the desktop's default handler, which for a .desktop file, a shell script or an AppImage means running it. Hylki now asks first, with the existing destructive-confirm dialog, when the name ends in one of about 50 risky extensions (.desktop, .sh, .AppImage, .jar, .exe, macro-enabled Office files, ...) or the first bytes are an ELF or Windows binary or a #! script.

Tests: the risky-name and magic-bytes table.

Opening an attachment hands it to the desktop's default handler. A .desktop, shell script, AppImage, jar, Windows binary and similar, or a file whose first bytes are ELF, MZ or a shebang whatever its name, now asks first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0