selplacei / konfsave

Easy saving and switching between multiple KDE configurations.
Apache License 2.0
45 stars 1 forks source link

Sub-optimal restarting mechanisms for plasmashell, KWin, and Latte #5

Open selplacei opened 3 years ago

selplacei commented 3 years ago

Currently, all three of these programs are restarted using the --replace option after loading the config. Not only does this create unnecessary waiting and overhead, but it may also fail due to how these programs manage their configs. Instead, existing mechanisms such as DBus should be used to reload configuration, and if that's not possible, configs should be loaded after the corresponding program has exited.

This will be addressed in a future PR.

selplacei commented 3 years ago

Partially addressed in 0.3.3. Still looking for a way to properly reload regular Plasma configs. I've asked in several places and no one has any idea. If anyone knows how to do this, please reply in this issue and/or submit a PR. Ideally, the program would call KGlobalSettings::emitChange().

Also thinking about adding customizable reload configurations for people who want to restart applications other than plasmashell, KWin, and Latte - but I think I'll only touch this after the plasmashell issue is resolved.