Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-09-2004, 04:25 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 12

Rep: Reputation: 0
changing 'Lock Screen' program

ok, dumb question that i'm sure i know the answer but i'm blanking on it. i have a working mandrake 9.2 install and xscreensaver set up and working fine. if i go idle it kicks on, etc. what i'm wondering is how to change the Lock Screen in the K menu so that it runs xscreensaver-command instead of running xlock. cuz it tries to run the default kde screensaver the way it is.

i know this isn't hard and frankly i'm embarassed to be asking. but any help much appreciated on this one, my brain is fried. =)
Old 01-09-2004, 07:19 PM   #2
LQ Newbie
Registered: Jan 2004
Location: United Kingdom
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
KDE launches the following command when you click Lock Screen:

First you have to become root by typing su followed by your root password.
Enter the directory by typing cd /opt/kde/bin.
Backup the existing executable by renaming it to something else mv kdesktop_lock kdesktop_lock_old.
Using you favourite text editor enter the following script and save it as kdesktop_lock:
xscreensaver-command -lock

Now when clicking on the Lock Screen button this new script should be run instead of the KDE Screensaver.
Old 01-11-2004, 02:54 PM   #3
LQ Newbie
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
that did it, thanks. except i'll say for anyone who searches this later, on my build for whatever reason the file was /usr/bin/kdesktop_lock


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't lock screen colpaarm Linux - Software 5 05-28-2007 03:14 AM
Problem changing the video adapter setting and changing the screen resolution habiblove Linux - General 3 02-18-2006 06:10 PM
Screen Lock up when enabling full screen in VLC unux82 Linux - Software 0 07-20-2005 04:01 AM
Screen lock changes screen resolution ohzo Linux - Laptop and Netbook 0 06-23-2004 12:13 PM
lock screen nautilus_1987 Linux - Software 1 09-23-2002 09:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration