https://bugs.kde.org/show_bug.cgi?id=436318
--- Comment #197 from imagina...@mailbox.org --- (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. -- You are receiving this mail because: You are watching all bug changes.