You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

kriko

Trainee

  • "kriko" started this thread

Posts: 127

Location: Slovenia

  • Send private message

1

Tuesday, April 17th 2007, 10:36pm

Logout instead of screensaver

Is it possible to make kde logout current user after certain inactivity, instead of starting screensaver?

leftbas

Trainee

Posts: 58

Location: Los Angeles, Ca, USA

Occupation: Senior Desktop Support Analyst

  • Send private message

2

Tuesday, April 17th 2007, 11:15pm

Not that I know of. But you can force the desktop to lock when the screen saver engages. That way the user has to enter a password when he returns to his desk. It's not a full log off, but it's close. But forcing a log off could cause users to lose data because forcing it would also force applications closed. And if that were to happen without prompting the user to save changes, you could have unhappy users.
In retrospect, everything is funny.

-- Unknown

kriko

Trainee

  • "kriko" started this thread

Posts: 127

Location: Slovenia

  • Send private message

3

Tuesday, April 17th 2007, 11:53pm

Well, thats the problem, in house I have a computer that multiple users use, but most times users doesn't log out. When another user wants to use it, it can't because it is locked and it doesn't know the password. I disabled user switching, because it led to freezes.

leftbas

Trainee

Posts: 58

Location: Los Angeles, Ca, USA

Occupation: Senior Desktop Support Analyst

  • Send private message

4

Wednesday, April 18th 2007, 12:06am

Ahh, I see. What you have is not a technology problem, but a dicipline problem - lol.
In retrospect, everything is funny.

-- Unknown

kriko

Trainee

  • "kriko" started this thread

Posts: 127

Location: Slovenia

  • Send private message

5

Wednesday, April 18th 2007, 12:19am

Exactly - I came up with something:

Source code

1
dcop ksmserver ksmserver logout 0 0 0


So, basically I have to create a script that does polling (e.g. once per minute) and if it detects screensaver running, then it forces logout procedure. I wonder if it will work, when screensaver is running.

leftbas

Trainee

Posts: 58

Location: Los Angeles, Ca, USA

Occupation: Senior Desktop Support Analyst

  • Send private message

6

Wednesday, April 18th 2007, 4:52pm

Intriguing. Good luck with it. :)
In retrospect, everything is funny.

-- Unknown