Called mate-screensaver-command instead of xdg-screensaver in MATE

This commit is contained in:
Clement Lefebvre 2012-04-18 11:04:43 +01:00
parent d8c90453f9
commit 5cb8cb4184
2 changed files with 12 additions and 3 deletions

10
debian/changelog vendored
View File

@ -1,10 +1,16 @@
mintmenu (5.3.1) oneiric; urgency=low
mintmenu (5.3.2) maya; urgency=low
* Call mate-screensaver-command instead of xdg-screensaver in MATE
-- Clement Lefebvre <root@linuxmint.com> Wed, 18 Apr 2012 11:03:54 +0100
mintmenu (5.3.1) maya; urgency=low
* Monitor MATE menu files for changes instead of GNOME ones
-- Clement Lefebvre <root@linuxmint.com> Wed, 04 Apr 2012 14:38:38 +0100
mintmenu (5.3.0) oneiric; urgency=low
mintmenu (5.3.0) maya; urgency=low
* Changed gnome favs with mate alternatives

View File

@ -172,6 +172,9 @@ class pluginclass( object ):
else:
if ( self.showLockScreen == True ):
Button5 = easyButton( "system-lock-screen", self.iconsize, [_("Lock Screen")], -1, -1 )
if os.path.exists("/usr/bin/mate-screensaver-command"):
Button5.connect( "clicked", self.ButtonClicked, "mate-screensaver-command -l" )
else:
Button5.connect( "clicked", self.ButtonClicked, "xdg-screensaver lock" )
Button5.show()
self.systemBtnHolder.pack_start( Button5, False, False )