LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-09-2004, 03:25 PM   #1
Eduardo911
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, 06:19 PM   #2
magellanic
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:
/opt/kde/bin/kdesktop_lock

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:
#!/bin/bash
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, 01:54 PM   #3
Eduardo911
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
 
  


Reply



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 02:14 AM
Problem changing the video adapter setting and changing the screen resolution habiblove Linux - General 3 02-18-2006 05:10 PM
Screen Lock up when enabling full screen in VLC unux82 Linux - Software 0 07-20-2005 03:01 AM
Screen lock changes screen resolution ohzo Linux - Laptop and Netbook 0 06-23-2004 11:13 AM
lock screen nautilus_1987 Linux - Software 1 09-23-2002 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:13 PM.

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