Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37865001
en ru br
ALT Linux repos
S:22.04.2-alt7

Group :: Other
RPM: mate-menu

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-set-menubutton-tooltip-as-label.patch
Download


diff --git a/lib/mate-menu.py b/lib/mate-menu.py
index 6cf7198..67f846c 100755
--- a/lib/mate-menu.py
+++ b/lib/mate-menu.py
@@ -531,11 +531,8 @@ class MenuWin( object ):
         self.do_load_icon(self.icon)
         self.systemlabel = Gtk.Label(label= "%s " % self.buttonText )
         try:
-            process = subprocess.Popen(['lsb_release', '-d'], stdout=subprocess.PIPE, text=True)
-            out, err = process.communicate()
-            tooltip = str(out).replace('Description:', '').strip()
-            self.systemlabel.set_tooltip_text(tooltip)
-            self.button_icon.set_tooltip_text(tooltip)
+            self.systemlabel.set_tooltip_text(self.buttonText)
+            self.button_icon.set_tooltip_text(self.buttonText)
         except OSError:
             pass
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin