morgant / swupdate-openbsd

One OpenBSD software update command to run them all
MIT License
10 stars 0 forks source link

Warn to restart GUI applications if fonts are updated #16

Open morgant opened 1 year ago

morgant commented 1 year ago

As was recently mentioned on ports@, when fonts are updated, it can cause issues with running GUI applications, so best to restart them. So, if a fonts package is updated by swupdate -i, it should warn the user.

morgant commented 1 year ago

I recently noticed that pkg_add -u does update the font cache after installing a font, but I'm not sure if that's sufficient for all running applications.

I think that swupdate -i should only suggest restarting GUI applications if a reboot is not required by syspatch or if the user selected not to reboot. My reasoning is that if a reboot is required and the user opts to reboot, that will inherently include exiting all GUI applications anyway.