GNOME ShellでFingerprint-guiのpolkitエージェントをどのように使用しますか?

GNOME ShellでFingerprint-guiのpolkitエージェントをどのように使用しますか?

fingerprint-gui私はArch Linuxを使用しており、AURからインストールしました。自分を追加しplugdevてグループ化した後、センサーが検出されましたscanner。以下を追加した後/etc/pam.d/system-auth

auth      sufficient pam_fingerprint-gui.so

sudoLightDM、GNOME Screensaverなどで認証できます。

問題はPolkitを使用するアプリケーションにあります。fingerprint-gui独自のPolkit認証エージェント(自動的に起動する必要があり/usr/lib/fingerprint-gui/fingerprint-polkit-agentます/etc/xdg/autostart/fingerprint-polkit-agent.desktop)が付属しています。しかし、起動しません。

$ pgrep polkit -fa
2247 /usr/lib/polkit-1/polkitd --no-debug
$ /usr/lib/fingerprint-gui/fingerprint-polkit-agent -d
New PolkitAgentListener  0x1b5f700 
Adding new listener  PolkitQt1::Agent::Listener(0x7ffecc222550) for  0x1b5f700 

** (fingerprint-polkit-agent:2951): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject
"Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject" 
Destroying listener
Removing listener  PolkitQt1::Agent::Listener(0x7ffecc222550) 

すでに実行中のエージェントがあるようです。アーチスウィキ/etc/xdg/autostartGNOME または KDE がインストールされている場合は、次のファイルを削除することをお勧めします。

polkit-gnome-authentication-agent-1.desktop
polkit-kde-authentication-agent-1.desktop

GNOMEシェルを使用していますが、インストールしませpolkit-gnomeんでした(ファイルはありません)。ただし、GNOME Shellには独自のPolkitエージェントがあるようです。

$ locate polkit | grep agent                             
/etc/xdg/autostart/fingerprint-polkit-agent.desktop
...
/usr/lib/libpolkit-agent-1.so
/usr/lib/libpolkit-agent-1.so.0
/usr/lib/libpolkit-agent-1.so.0.0.0
/usr/lib/libpolkit-qt-agent-1.so
/usr/lib/libpolkit-qt-agent-1.so.1
/usr/lib/libpolkit-qt-agent-1.so.1.112.0
...
$ lsof /usr/lib/libpolkit-agent-1.so.0.0.0
COMMAND   PID    USER  FD   TYPE DEVICE SIZE/OFF   NODE NAME
gnome-she 757    muru mem    REG  259,0    40200 289001 /usr/lib/libpolkit-agent-1.so.0.0.0

fingerprint-guiGNOME ShellでPolkitエージェントを使用する方法は?

$ gnome-shell --version
GNOME Shell 3.18.1

ベストアンサー1

少し躊躇して、gnome-sessionラッパーで交換しました。

$ cat /usr/local/bin/gnome-session
#! /bin/sh

/usr/lib/fingerprint-gui/fingerprint-polkit-agent -d &
exec /usr/bin/gnome-session "$@"

しかし、Polkitfingerprint-guiプロキシは非常に見苦しいです。

ここに画像の説明を入力してください。

おすすめ記事