This bug affects me also. I worked around it by creating a bash script and called that from the keyboard shortcut. http://ubuntuforums.org/showpost.php?p=10457105&postcount=4
Lets create a new file in /usr/local/bin called lockwithaview and open it with gedit: Code: sudo gedit /usr/local/bin/lockwithaview It should contain the following(cut and paste): Code: #!/bin/bash sleep 1 && xtrlock Save the file and close gedit, then make it executable: Code: sudo chmod a+x /usr/local/bin/lockwithaview Create a keyboard shortcut to execute lockwithaview(I used ctrl+alt+k) and you are finished. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/503029 Title: Does not lock desktop, if run by keyboard shortcut or by a launcher in Xfce, if not run in terminal -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs