Skip to main content

from_system_async

Function from_system_async 

Source
pub async fn from_system_async() -> Result<NativeTheme>
Expand description

Async version of from_system() that uses D-Bus portal backend detection to improve desktop environment heuristics on Linux.

When XDG_CURRENT_DESKTOP is unset or unrecognized, queries the D-Bus session bus for portal backend activatable names to determine whether KDE or GNOME portal is running, then dispatches to the appropriate reader.

On non-Linux platforms, behaves identically to from_system().