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

--- Comment #202 from devsk <funt...@yahoo.com> ---
(In reply to Roke Julian Lockhart Beedell from comment #198)
> (In reply to imaginator from comment #197)  
> On older systems, this wouldn't really work, since there's always something
> that randomly takes ages to launch. Is there a way to wait for a specific
> process to be invoked? If so, perhaps wait for `plasmashell` to be running,
> then run the script, since it's usually one of the last things to run.
> https://stackoverflow.com/a/9118509/9731176 might be of use.

I simply went with the option of starting all the applications from the saved
session and then giving user a dialog box to OK the moving of the windows to
their respective desktops, positioning them at the saved location and resizing
them as per the saved info.

The user just waits for all the application windows to start in the current
desktop and then, pressing OK does the work. There are tricks to center the
dialog box, keep it above all windows and activating it. kdotool works really
well to do the rest.

Checkout the gist I posted. Most of code can be used as is. Only binary names
need adjusting/addition/deletion.

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

Reply via email to