Called mate-screensaver-command instead of xdg-screensaver in MATE
This commit is contained in:
parent
d8c90453f9
commit
5cb8cb4184
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -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
|
* Monitor MATE menu files for changes instead of GNOME ones
|
||||||
|
|
||||||
-- Clement Lefebvre <root@linuxmint.com> Wed, 04 Apr 2012 14:38:38 +0100
|
-- 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
|
* Changed gnome favs with mate alternatives
|
||||||
|
|
||||||
|
@ -172,6 +172,9 @@ class pluginclass( object ):
|
|||||||
else:
|
else:
|
||||||
if ( self.showLockScreen == True ):
|
if ( self.showLockScreen == True ):
|
||||||
Button5 = easyButton( "system-lock-screen", self.iconsize, [_("Lock Screen")], -1, -1 )
|
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.connect( "clicked", self.ButtonClicked, "xdg-screensaver lock" )
|
||||||
Button5.show()
|
Button5.show()
|
||||||
self.systemBtnHolder.pack_start( Button5, False, False )
|
self.systemBtnHolder.pack_start( Button5, False, False )
|
||||||
|
Loading…
Reference in New Issue
Block a user