@saurav1: Only tested the script on freshly installed Xubuntu 16.04. The screen doesn't get relocked on my computer.
Maybe it's a race condition and setting "Delay after locking screen saver for" in "XFCE Power Manager" under the "Security" tab to a higher value helps.
@saurav1: Only tested the script on freshly installed Xubuntu 16.04. The screen doesn't get relocked on my computer.
Maybe it's a race condition and setting "Delay after locking screen saver for" in "XFCE Power Manager" under the "Security" tab to a higher value helps.