Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 10th, 2005, 8:32 AM   #1
thinkgeek
Newbie
 
Join Date: Jul 2005
Posts: 10
Rep Power: 0 thinkgeek is on a distinguished road
Question Python: X Screen Lock

I want to write a program that will lock screen when it is run and ask for username and password. I want to write it in python. The username and password is stored in my PostgreSql database.

Can anyone help or suggest some important links or some sample scripts to accomplish this task.

thinkgeek
thinkgeek is offline   Reply With Quote
Old Jul 10th, 2005, 10:46 AM   #2
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
I would say just call xlock from Python, but you'd need some magic to make that work with a custom username/password (it takes a -cpasswd option that reads an alternative password file, but I don't think you can set the username).
I'd probably just have a look at this simple locking application, port it to Python with xlib-python, and then modify it to use a username/password from your database. A fair bit of work, but I can't think of anything better at the moment.
Cerulean is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:43 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC