cosmic-comp/src
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
..
backend chore: format for Rust 2024 2025-10-22 23:55:11 +02:00
config chore: format for Rust 2024 2025-10-22 23:55:11 +02:00
dbus dbus: Add NameOwners helper 2025-11-24 13:53:05 -08:00
input gestures: Cycle through workspaces 2025-11-21 09:10:01 -07:00
logger chore: format for Rust 2024 2025-10-22 23:55:11 +02:00
shell gestures: Cycle through workspaces 2025-11-21 09:10:01 -07:00
utils chore: format for Rust 2024 2025-10-22 23:55:11 +02:00
wayland fix(popup): avoid panic when None 2025-11-13 17:58:37 -05:00
debug.rs chore: format for Rust 2024 2025-10-22 23:55:11 +02:00
hooks.rs Add hooks for custom window decorations 2025-10-29 11:27:14 +01:00
lib.rs Add hooks for custom window decorations 2025-10-29 11:27:14 +01:00
main.rs Add hooks for custom window decorations 2025-10-29 11:27:14 +01:00
session.rs session: Remove NewPrivilegedClient command 2025-10-30 00:45:13 +01:00
state.rs dbus: Use ThreadPool instead of zbus blocking API 2025-11-24 13:53:05 -08:00
systemd.rs chore: format for Rust 2024 2025-10-22 23:55:11 +02:00
theme.rs chore: format for Rust 2024 2025-10-22 23:55:11 +02:00
xwayland.rs xwayland: Fix unscaled dpi setting 2025-11-21 09:09:21 -07:00