add linux platform support#66
Open
ManavA wants to merge 2 commits into
Open
Conversation
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.
Author
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.