No description
Find a file
Ian Douglas Scott d08ac9645b dbus: Add NameOwners helper
This monitors `NameOwnerChanged` events to keep track of what unique
names own what well-known names on the bus. This allows dbus protocol
implementations to check that callers own a certain name.

To initially populate the list of dbus name owners, `ListNames` is used
at start. Then `GetNameOwner` is lazily invoked to populate owners that
exist at start. To avoid calling that for every single name on the bus.

This also keeps track of unique bus names, which don't require any
additional methods or signals to monitor. This allows us to also detect
if a client has disappeared from the bus.

The `COSMIC_ENFORCE_DBUS_OWNERS` allows disabling checking of owned
names.
2025-11-24 13:53:05 -08:00
.github/workflows chore: update CI 2025-10-22 23:55:11 +02:00
cosmic-comp-config chore: format for Rust 2024 2025-10-22 23:55:11 +02:00
data chore: add Alt+F4 shortcut to close windows 2025-10-07 17:06:43 +02:00
debian Use automatic shared library dependency on libdisplay-info 2025-10-21 08:50:17 -06:00
examples Add example for customized window decorations 2025-10-29 11:27:14 +01:00
resources i18n: translation updates from weblate 2025-11-24 17:55:58 +01:00
src dbus: Add NameOwners helper 2025-11-24 13:53:05 -08:00
.gitignore Rework source filtering. 2023-01-04 01:52:16 -08:00
build.rs cargo fmt 2025-10-22 23:55:11 +02:00
Cargo.lock dbus: Use ThreadPool instead of zbus blocking API 2025-11-24 13:53:05 -08:00
Cargo.toml dbus: Use ThreadPool instead of zbus blocking API 2025-11-24 13:53:05 -08:00
flake.lock Update and fix flake.nix 2024-09-02 19:44:51 +02:00
flake.nix fix: add missing libdisplay-info library into flake.nix 2025-01-12 13:09:03 +01:00
i18n.toml i18n support 2023-07-06 00:04:34 +02:00
LICENSE Initial commit 2021-12-15 17:25:15 +01:00
Makefile Use new config from cosmic-settings-config 2024-09-04 20:50:42 +02:00
rust-toolchain.toml Update toolchain to Rust 1.85 2025-05-19 21:29:51 +02:00
rustfmt.toml chore: format for Rust 2024 2025-10-22 23:55:11 +02:00