Skip to content

add linux platform support#66

Open
ManavA wants to merge 2 commits into
neckaros:masterfrom
ManavA:linux-support
Open

add linux platform support#66
ManavA wants to merge 2 commits into
neckaros:masterfrom
ManavA:linux-support

Conversation

@ManavA
Copy link
Copy Markdown

@ManavA ManavA commented May 8, 2026

adds a linux implementation that mirrors the windows one — method handler returns Success() for every call (the actual lock UI is rendered dart-side by SecureGate), and a GTK window-state-event hook invokes `lock` on iconify like the SC_MINIMIZE hook does on windows.

tested with flutter 3.41 stable on GTK 3. fixes MissingPluginException for linux desktop users currently using the package.

ManavA added 2 commits May 8, 2026 00:44
local_auth has no linux platform implementation; once SecureGate enters its locked state via the channel, authenticate() throws MissingPluginException and the user is stranded on the lock screen with no way back. keep the no-op method handler so apps don't hit MissingPluginException for opacity/lock/secure calls. apps that want explicit lock-on-minimize behaviour on linux can drive it from a dart-side WindowListener once local_auth_linux exists.
@ManavA
Copy link
Copy Markdown
Author

ManavA commented May 9, 2026

dropped the iconify-lock hook — local_auth has no linux impl so SecureGate would lock with no way to unlock. plain channel handler is enough to clear MissingPluginException.

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