https://bugs.kde.org/show_bug.cgi?id=436318

--- Comment #207 from devsk <funt...@yahoo.com> ---
(In reply to Patrick O'Callaghan from comment #205)
> 
> So this patch has actually nothing to do with session restore. I'd suggest
> posting it somewhere else to avoid confusion.

Yes. I don't think anybody cares about flipping the gestures behavior. I will
keep this patch around.

> I've had a quick look at your scripts but haven't tried them. They seem
> quite complicated, but maybe they do more than mine. I've taken note of how
> you use 'kdotool windowmove' and have added this to my own scripts (don't
> know why I hadn't noticed this before :-). I'll upload them shortly (still
> not very familiar with Gist to be honest).

Yes. My script does do way more..:-) It saves a lot more information in a
format which is easily read in bash. Then, it starts all the apps and waits for
the user to ack the restoration process which restores their desktop, position
and size.

I had to add a lot of code for robustness e.g. some random processes make their
way into 'kdotool search' when they don't have a real window associated with
them e.g. plasmashell. 

For example, restoring from X11 to wayland, the window class changes from
konsole to org.kde.konsole.

For example, the size and location on wayland are floating point numbers
sometimes, which was not apparent until wayland locked up on creating a window
with 0 size with infinite memory allocation loop and got killed by OOM.

For example, if you saved session from a crontab periodically, kdotool just
doesn't find any windows because crontab does not have access to the user
environment to access the DBUS.

Lots of accounting for quirks.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to