jay-compositor 1.15.0

The Jay compositor
1
2
3
4
5
6
7
8
9
use uapi::IntoUstr;
use uapi::c;

pub fn set_process_name(name: &str) {
    unsafe {
        let name = name.into_ustr();
        c::prctl(c::PR_SET_NAME, name.as_ptr());
    }
}