If I using Mate Menu applet my panel, always me presents an Unbound Local Error exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mate-menu (Ubuntu) |
Won't Fix
|
High
|
Unassigned |
Bug Description
Dear Developers,
If I using Mate Menu applet, me always presents following traceback error message after login:
Unable to set the plugin system_management :
Traceback (most recent call last):
File "/usr/lib/
MyPlugin.
File "/usr/lib/
self.
File "/usr/lib/
Button2.show()
UnboundLocalError: local variable 'Button2' referenced before assignment
If I this situation click OK button, Mate Menu applet me works fine, possible using the search bar, etc.
Please fix this error if this is possible.
Attila
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mate-menu 5.7.1-1
ProcVersionSign
Uname: Linux 4.4.0-21-generic i686
ApportVersion: 2.20.1-0ubuntu2
Architecture: i386
CurrentDesktop: MATE
Date: Tue Apr 26 10:52:55 2016
InstallationDate: Installed on 2016-04-22 (4 days ago)
InstallationMedia: Ubuntu-MATE 16.04 LTS "Xenial Xerus" - Release i386 (20160419.1)
PackageArchitec
SourcePackage: mate-menu
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in mate-menu (Ubuntu): | |
importance: | Undecided → High |
I think I founded why happening this exception. synaptic- pkexec, /usr/bin/ software- center, applications/ ubuntu- mate-software. desktop mate-software utility. mate-menu. plugins. system_ management manager
After installation, I removed the mate-welcome package. Because my
system not present following files, happened the reported exception:
/usr/bin/
/usr/share/
Real my machine not installed Synaptic, software-center or the
mate-welcome package, with ships the ubuntu-
If I installing for example the synaptic package, the exception is not
happening.
Same result if I turning off the Show package manager related GSettings
preference the mate-plugin related, following the GSettings schema and name:
Schema name: org.mate.
Setting name: show-package-
Default value: true
Following code part affected the exception related if one of the
examined packages not installed:
def do_standard_items( self ):
if ( self.showPackag eManager == True ): exists( "/usr/bin/ synaptic- pkexec" ):
Button2 = easyButton( "synaptic" , self.iconsize,
Button2. connect( "clicked", self.ButtonClicked, synaptic- pkexec" ) exists( "/usr/bin/ software- center" ):
Button2 = easyButton( "softwarecenter ", self.iconsize,
Button2. connect( "clicked", self.ButtonClicked, software- center" ) exists( "/usr/share/ applications/ ubuntu- mate-software. desktop" ):
Button2 = easyButton( "system- software- install" ,
Button2. connect( "clicked" , self.ButtonClicked, ubuntu- mate-welcome --software-only")
Button2. show()
self. systemBtnHolder .pack_start( Button2, False, False, 0 )
self. mateMenuWin. setTooltip( Button2, _("Install, remove
if os.path.
[_("Package Manager")], -1, -1 )
"/usr/bin/
elif os.path.
[_("Package Manager")], -1, -1 )
"/usr/bin/
elif
os.path.
self.iconsize, [_("Package Manager")], -1, -1 )
"/usr/bin/
and upgrade software packages") )
Attila