feat: set dbus env auto

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

View file

@ -3503,6 +3503,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);