Re: Change suspend type from kde menu
Am 03.01.2024 um 17:41 schrieb Greg Wooledge:
...
Bear in mind that this entire approach is a bit of a hack, with some
baked-in assumptions about who's logged in on which DISPLAY. If this
works for you, then that's great.
Manually restarting whatever application was affected would be simpler,
but...
But some people might need to extend
this to check for the actual logged-in account, rather than assuming it's
the primary user. (Left as an exercise, because unfortunately there is
no good way to do that, as far as I know anyway.)
I would start with something like
w | awk -e '$3==":0" { print $1 }'
A cleaner approach would be to record what was killed in the pre-suspend
phase and recreate that post wakeup, in my opinion.
Cheers,
Arno
--
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
Reply to: