2012/4/11 Clément DÉMOULINS <[email protected]>: >> >> The guy who shares computer with me uses KDE, and he uses basically the >> same .xinitrc (except replace `awesome` with `startkde`). KDE handles >> this correctly---either just logging off or shutting down in KDE, his >> volume level would be saved.
I would bet KDE does not wait until it is logging out or shutting down to store these settings. If you are waiting to trap signals you always run the risk of missing them. It is also already more complex than it should be, you're modifying things in two places. If you have some level of control over how you're updating volume could you update .asoundrc whenever you change something. Then you never worry about races or different shutdown methods, it even correctly would store if you suffer a crash or something. You could debounce your volume controls to prevent excessive write activity even. -- perry -- To unsubscribe, send mail to [email protected].
