Bug 21401 - gnomenu will not function within cairo-dock
Summary: gnomenu will not function within cairo-dock
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Shlomi Fish
QA Contact:
URL: https://forums.mageia.org/en/viewtopi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-29 18:24 CEST by Joe K
Modified: 2020-08-05 15:39 CEST (History)
2 users (show)

See Also:
Source RPM: cairo-dock
CVE:
Status comment:


Attachments

Description Joe K 2017-07-29 18:24:41 CEST
Installed cairo-dock and attempted to use the gnomenu addon which has returned an error message.

Version-Release number of selected component (if applicable):
Cairo-dock version 3.4.1
Mageia version 6.

How reproducible: 

within terminal 

Steps to Reproduce:
1. cairo-dock -o & 
2. check the following error message returned

<code>
    >>> INIT
    GnoMenu 2.9
    settings load
    Traceback (most recent call last):
      File "./GnoMenu", line 190, in <module>
        appleticon = AppletIcon( icon_object=myIcon)
      File "./GnoMenu", line 116, in __init__
        from Menu_Main import Main_Menu
      File "/usr/lib/gnomenu/Menu_Main.py", line 24, in <module>
        from Menu_Widgets import MenuButton , Separator, ImageFrame, ProgramList, IconProgramList,MenuTab, MenuLabel, MenuImage,TreeProgramList, CairoProgramList
      File "/usr/lib/gnomenu/Menu_Widgets.py", line 22, in <module>
        from Menu_Items import XDGMenu
      File "/usr/lib/gnomenu/Menu_Items.py", line 22, in <module>
        from Popup_Menu import add_menuitem, add_image_menuitem
      File "/usr/lib/gnomenu/Popup_Menu.py", line 322, in <module>
        import Globals
      File "/usr/lib/gnomenu/Globals.py", line 589, in <module>
        distro_logo = gtk.icon_theme_get_default().lookup_icon('distributor-logo',48,gtk.ICON_LOOKUP_FORCE_SVG).get_filename()
    AttributeError: 'NoneType' object has no attribute 'get_fi
<code>

To fix the problem I was directed to the page
http://www.fedoraforum.org/forum/showpost.php?p=1456128&postcount=13

I located the Globals.py code in the /usr/lib/gnomenu directory and modified line
589 from 

<code>
distro_logo = gtk.icon_theme_get_default().lookup_icon('distributor-logo',48,gtk.ICON_LOOKUP_FORCE_SVG).get_filename()
<code>

to
<code>
distro_logo = gtk.icon_theme_get_default()
<code>

This has fixed the problem.
Comment 1 Marja Van Waes 2017-07-29 22:18:35 CEST
Assigning to the registered maintainer of cairo-dock

Source RPM: (none) => cairo-dock
Assignee: bugsquad => shlomif
CC: (none) => marja11

Comment 2 Shlomi Fish 2017-08-23 19:43:56 CEST
(In reply to Joe K from comment #0)
> Installed cairo-dock and attempted to use the gnomenu addon which has
> returned an error message.
> 
> Version-Release number of selected component (if applicable):
> Cairo-dock version 3.4.1
> Mageia version 6.
> 
> How reproducible: 
> 
> within terminal 
> 
> Steps to Reproduce:
> 1. cairo-dock -o & 
> 2. check the following error message returned
> 
> <code>
>     >>> INIT
>     GnoMenu 2.9
>     settings load
>     Traceback (most recent call last):
>       File "./GnoMenu", line 190, in <module>
>         appleticon = AppletIcon( icon_object=myIcon)
>       File "./GnoMenu", line 116, in __init__
>         from Menu_Main import Main_Menu
>       File "/usr/lib/gnomenu/Menu_Main.py", line 24, in <module>
>         from Menu_Widgets import MenuButton , Separator, ImageFrame,
> ProgramList, IconProgramList,MenuTab, MenuLabel, MenuImage,TreeProgramList,
> CairoProgramList
>       File "/usr/lib/gnomenu/Menu_Widgets.py", line 22, in <module>
>         from Menu_Items import XDGMenu
>       File "/usr/lib/gnomenu/Menu_Items.py", line 22, in <module>
>         from Popup_Menu import add_menuitem, add_image_menuitem
>       File "/usr/lib/gnomenu/Popup_Menu.py", line 322, in <module>
>         import Globals
>       File "/usr/lib/gnomenu/Globals.py", line 589, in <module>
>         distro_logo =
> gtk.icon_theme_get_default().lookup_icon('distributor-logo',48,gtk.
> ICON_LOOKUP_FORCE_SVG).get_filename()
>     AttributeError: 'NoneType' object has no attribute 'get_fi
> <code>
> 
> To fix the problem I was directed to the page
> http://www.fedoraforum.org/forum/showpost.php?p=1456128&postcount=13
> 
> I located the Globals.py code in the /usr/lib/gnomenu directory and modified
> line
> 589 from 
> 
> <code>
> distro_logo =
> gtk.icon_theme_get_default().lookup_icon('distributor-logo',48,gtk.
> ICON_LOOKUP_FORCE_SVG).get_filename()
> <code>
> 
> to
> <code>
> distro_logo = gtk.icon_theme_get_default()
> <code>
> 
> This has fixed the problem.

Hi Joe!

Sorry for the late reply but on mageia 7, urpmf cannot find "gnomenu" anywhere:

root@telaviv1:~$ urpmf gnomenu                             
fpc-src:/usr/share/fpcsrc/packages/gnome1/src/libgnomeui/gnomenumberentry.inc
fpc-src:/usr/share/fpcsrc/packages/gnome1/src/libgnomeui/gnomenumberentry.inc
root@telaviv1:~$

are you sure it is part of mageia?
Comment 3 Aurelien Oudelet 2020-08-05 15:39:05 CEST
This message is a reminder that Mageia 6 is end of life.

Mageia stopped maintaining and issuing updates for Mageia 6. At that time this bug will be closed as OLD (EOL).

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version prior to Mageia 6's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we cannot 
be able to fix it before Mageia 6 was end of life.
If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

--
Mageia Bugsquad

Resolution: (none) => OLD
Status: NEW => RESOLVED
CC: (none) => ouaurelien


Note You need to log in before you can comment on or make changes to this bug.