pub fn set_desktop_prop_string(
        &self,
        value: &str,
        atom: xproto::Atom,
        encoding: xproto::Atom,
    ) -> Result<()> {
        let cstring = CString::new(value)?;
        let data = cstring.as_bytes();
        xproto::change_property(
            &self.conn,
            xproto::PropMode::REPLACE,
            self.root,
            atom,
            encoding,
            8,
            u32::try_from(data.len())?,
            data,
        )?;
        Ok(())
    }
Sets a desktop property with type string.
display-servers/x11rb-display-server/src/xwrap/setters.rs