When I run this from a terminal, the screen gets locked and seems to remain black even after moving the mouse and waiting again for the dialog to go away:
qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock
But when I create a launcher for this command, it does the same as the standard lock button: i.e. The desktop becomes visible once the password dialog goes away.
Interesting:
When I run this from a terminal, the screen gets locked and seems to remain black even after moving the mouse and waiting again for the dialog to go away: .ScreenSaver /ScreenSaver Lock
qdbus org.freedesktop
But when I create a launcher for this command, it does the same as the standard lock button: i.e. The desktop becomes visible once the password dialog goes away.