fix(network): register secret agent at NetworkManager's expected object path
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2c95057716
commit
1473e1f008
3 changed files with 13 additions and 1 deletions
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE busconfig PUBLIC
|
||||
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<policy context="default">
|
||||
<allow own_prefix="com.system76.CosmicSettings.Applet"/>
|
||||
</policy>
|
||||
</busconfig>
|
||||
|
|
@ -405,6 +405,7 @@ fn secret_agent_task(identifier: String) -> Task<NmAgentEvent> {
|
|||
cosmic::Task::stream(async_fn_stream::fn_stream(move |emitter| async move {
|
||||
let registration = SecretAgent::builder()
|
||||
.with_identifier(identifier)
|
||||
.with_object_path("/org/freedesktop/NetworkManager/SecretAgent")
|
||||
.with_capabilities(SecretAgentCapabilities::VPN_HINTS)
|
||||
.register()
|
||||
.await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue