In Lubuntu 18.04, I have many background GUI jobs running in a bash shell. Among them, I have a evince process running in background:
$ jobs | grep evince [29] Running evince CurrentDBs.pdf & I would like to bring its window to the front of my desktop (in front of my current lxterminal window which runs the bash shell), but fg 29 doesn't do so.
Why is that? Is it because job control of a shell has nothing to do with which window is in the front or not in the desktop environment (or X window system)?
How can I bring a background GUI job to the front of my desktop? Can xdotool be used to raise the window of a given process id to the front, even if the process runs a Windows program under Wine?
Thanks.