diff --git a/debian/changelog b/debian/changelog index b54261a..704e93e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 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 diff --git a/usr/lib/linuxmint/mintMenu/plugins/system_management.py b/usr/lib/linuxmint/mintMenu/plugins/system_management.py index ed7fef2..e1e924d 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/system_management.py +++ b/usr/lib/linuxmint/mintMenu/plugins/system_management.py @@ -172,7 +172,10 @@ class pluginclass( object ): else: if ( self.showLockScreen == True ): Button5 = easyButton( "system-lock-screen", self.iconsize, [_("Lock Screen")], -1, -1 ) - Button5.connect( "clicked", self.ButtonClicked, "xdg-screensaver lock" ) + 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 ) self.mintMenuWin.setTooltip( Button5, _("Requires password to unlock") )