This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to get a pre-logout snapshot?

Tags: None
(comma "," separated)
Reg
Registered Member
Posts
4
Karma
0

How to get a pre-logout snapshot?

Thu Apr 20, 2023 3:34 am
I have a script that takes a snapshot of my desktop on login and logout, the script also archives a copy of most of the KDE configuration files AFAIK.

Using autostart, on login and I just execute a sleep command and wait for everything to load up and settle before taking a snapshot and that works fine.

This doesn't work for logout however since it blanks the screen before running the script. Is there some sort of event I can pick up to take a snapshot before it blanks the screen?

Also, there's lots of sites with comments saying how to use autostart for login and logout but I can't find anything that tells me the order of events. My guess is for login that it runs the login scripts before loading the applications and on logout I have no clue what to expect in the order of events. Primarily is there some configuration save that occurs before running a logout script or does that come after or is the configuration all set so no save is necessary or something more complicated?

I would imagine that on login there's some updates to configuration plasma files. Would they be before or after an autostart login script is run?

Some of this is concurrent and some sequential I would imagine but I have no clue what is what in that regard.

What is the order of operations on startup and shutdown would be nice to know, at least in a broad sense if possible. However, my original question is the important one, that is, is there a way to run a script pre-logout so that we can take a snapshot of the screen before it gets blanked?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]