Thor77 / Blueproximity

Run a command once a bluetooth device is in/out of a range
GNU General Public License v2.0
66 stars 15 forks source link

Screen not locking #6

Closed Thor77 closed 8 years ago

Thor77 commented 8 years ago

I used the .deb file to install on Ubuntu 7.04 Feisty Fawn. The screen is not automatically locked, it just go to sleep like a black screensaver and returns without any password.

I download the source and changed two lines (51 and 52) on proximity.py with the following:

'lock_command=string(default=''gnome-screensaver-command --lock'')', 'unlock_command=string(default=''gnome-screensaver-command --deactivate'')',

and it worked.

I also tried the older commands on a terminal ("gnome-screensaver-command -a" and "gnome-screensaver-command -d") and they did not work, just a black screen.

Great application! Please check this so that everybody can use it.

Thor77 commented 8 years ago

Logged In: YES user_id=114903 Originator: NO

Ok, I consider this bug to be closed then as SVN and nightly do include the new command as default now. (By highno)

Thor77 commented 8 years ago

Logged In: YES user_id=1797096 Originator: YES

Yes, I have no screen saver, I just put the display to sleep after some time of inactivity. That's why activating the screen saver does not lock the screen. But now with -l it is working fine even without having the gnome screen saver configured to lock the screen. (By fmaste)

Thor77 commented 8 years ago

Logged In: YES user_id=114903 Originator: NO

I rechecked that and it is true - the options for gnome-screensaver-command read as follows -a = activation -l = locking and it does as said - even if the screensaver is not configured for asking the password -l will make it ask for it. I changed that in the SVN version. Thanks for the note. (btw, it does not matter if short parameters or long ones are used, I prefer the shorter ones as I am pretty lazy :-) (By highno)

Thor77 commented 8 years ago

Logged In: YES user_id=114903 Originator: NO

Interesting - is your gnome screensaver configured to be locking the screen at all? Mine is - that's possibly why it locks the screen with password just by activating. I will check that. (By highno)