feat: set dbus env auto

This commit is contained in:
DreamMaoMao 2026-02-24 21:40:26 +08:00
parent f8fa7a856c
commit a28647585f
8 changed files with 155 additions and 3 deletions

View file

@ -3647,6 +3647,16 @@ void reapply_cursor_style(void) {
cursor_mgr = wlr_xcursor_manager_create(config.cursor_theme, cursor_size);
if(cursor_size > 0){
char size_str[16];
snprintf(size_str, sizeof(size_str), "%d", cursor_size);
setenv("XCURSOR_SIZE", size_str, 1);
}
if(config.cursor_theme){
setenv("XCURSOR_THEME", config.cursor_theme, 1);
}
Monitor *m = NULL;
wl_list_for_each(m, &mons, link) {
wlr_xcursor_manager_load(cursor_mgr, m->wlr_output->scale);