https://bugs.kde.org/show_bug.cgi?id=436318
--- Comment #199 from Patrick O'Callaghan <pocallag...@gmail.com> --- (In reply to imaginator from comment #197) > (In reply to Patrick O'Callaghan from comment #196) > > (In reply to imaginator from comment #195) > > > (In reply to Patrick O'Callaghan from comment #181) > > > > I currently have a set of apps in Autostart, but it's still annoying to > > > > have > > > > to manually move windows onto the right desktops after logging in. As a > > > > partial workaround, I wrote a couple of scripts using kdotool (see your > > > > local KDE repo). They can occasionally give strange error messages, and > > > > don't do anything for window positions within a desktop because that > > > > doesn't > > > > seem to be possible, but I thought I'd post them here in case anyone > > > > finds > > > > them useful. Note that I invoke them manually. There may be a way to > > > > automate this, but I haven't found it. (Simple login/logout scripts are > > > > not > > > > the answer).: > > > > > > Have you ever put the script that restores the windows into "Autostart" as > > > well? I don't know whether one has any influence on the sequence in which > > > the programs are started but _if_ they are started in alphabetical order > > > you > > > could name it something like z_script. > > > > It doesn't work (I tried it). AFAIK Plasma fires all the Autostart scripts > > concurrently and I don't see a way to make the Restore script wait until > > everything else is up, or at least has mapped its window(s). Maybe there's > > some systemd magic that would do it. > > You could use "sleep" (-> sleep --help) to delay the execution of the > relevant parts of your script until other scripts have run or the desktop is > fired up. Example: > > #!/bin/bash > > # Test "sleep". > sleep 10 > echo "This was a test." > > > HTH. I generally think timer-based solutions are inferior to triggers, but you can do that if want. It strikes me as even more kludgey than what I already have, and given that the user has to manually save the session anyway it wouldn't even have the advantage of transparency. -- You are receiving this mail because: You are watching all bug changes.