如何找到使用 Secure Input 的应用

我在写作时,会使用 aText 来做大量的文本替换,以提升输入的效率。但在 macOS 下,aText 常常会 […]

白宦成
Oct 8, 2022

我在写作时,会使用 aText 来做大量的文本替换,以提升输入的效率。但在 macOS 下,aText 常常会被 Secure Input 所阻塞,无法使用。这个时候你需要找到正在使用 Secure Input 的应用,并关掉它,不然你的 aText 始终无法启用。

想要找到它也非常简单,你可以执行如下命令,来查找开启了 Secure Input 的应用

ioreg -l -w 0 | grep SecureInput
执行效果

找到对应的输入后,可以看到 kCGSSessionSecureInputPID 的 PID 值,比如我这里是 182,接下来可以执行如下命令来找到 PID 为 182 的程序到底是哪个

ps auxww | grep 182 #你在使用的时候,记得替换为你对应的 PID

执行后可以看到红框的部分就是 182 进程。我这里是 macOS 自带的 Login Window。Login Window 只需要对系统执行一次锁屏 & 解锁,即可解开 Secure Input。如果你的是其他应用程序,则可以直接使用 kill PID 来关闭。

延展阅读

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

白宦成
白宦成

No responses yet

What are your thoughts?