You are not logged in.

#1 2012-06-11 06:18:04

jallenusn
Member
Registered: 2012-06-11
Posts: 34

[Solved] AWN-settings gtk-missing-image

There are a couple of posts on the forum about this issue, however none of them seem to resolve my problem.  The closest thing to a resolution was to get gtk-icon-themes but I noticed it is not in the AUR.  I am running KDE and attempting to get AWN working.  This is the output for awn-settings

[unilx@online ~]$ avant-window-navigator
Screen is composited
** (avant-window-navigator:2496): DEBUG: Updating gtk theme colours
** (avant-window-navigator:2496): DEBUG: Updating dialog colours
** (avant-window-navigator:2496): DEBUG: Spawned awn-applet[2500] for "quick-prefs.desktop", UID: 1, XID: 27263014
** (avant-window-navigator:2496): DEBUG: Spawned awn-applet[2502] for "taskmanager.desktop", UID: 3, XID: 27263015

** (awn-applet:2502): CRITICAL **: File not found: '/usr/share/applications/firefox.desktop'
** (awn-applet:2502): DEBUG: task_manager_refresh_launcher_paths: Bad desktop file '/usr/share/applications/firefox.desktop'

** (awn-applet:2502): WARNING **: The launcher '/usr/share//applications//kde4/konsole.desktop' could not load the icon 'utilities-terminal': Icon 'utilities-terminal' not present in theme

(awn-applet:2502): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(awn-applet:2502): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(awn-applet:2502): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `GDK_IS_PIXBUF (src)' failed

(awn-applet:2502): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (awn-applet:2502): CRITICAL **: task_item_icon_changed: assertion `icon' failed

(awn-applet:2502): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (awn-applet:2502): CRITICAL **: File not found: '/usr/share/applications/firefox.desktop'
** (awn-applet:2502): DEBUG: task_manager_refresh_launcher_paths: Bad desktop file '/usr/share/applications/firefox.desktop'
Applet [1] flags: 1024: DockletHandlesPositionChange 
** Message: pygobject_register_sinkfunc is deprecated (AwnOverlay)
Traceback (most recent call last):
  File "/usr/bin/awn-settings", line 1223, in <module>
    awnmanager = awnManagerMini()
  File "/usr/bin/awn-settings", line 1072, in __init__
    self.createMainMenu()
  File "/usr/bin/awn-settings", line 1137, in createMainMenu
    self.safe_load_icon('gtk-execute', size, gtk.ICON_LOOKUP_USE_BUILTIN),
  File "/usr/share/avant-window-navigator/awn-settings/awnClass.py", line 1044, in safe_load_icon
    icon = self.theme.load_icon('gtk-missing-image', size, flags)
glib.GError: Icon 'gtk-missing-image' not present in theme

  Since i cannot seem to find the gtk-icon-themes I was hoping I could just change the code in /usr/bin/awn-settings.  This may be rather presumptuous but seeing as I know absolutely nothing about code this is basically a hail mary. 

Since it denotes lines 1024, 1223, 1072, 1137, & 1044 as being the issue I was hoping I could just change them to grab an image from anywhere, say, ~/Downloads or something to that effect?  Or possibly create any image in the locations it is looking and then overwrite it with something that is "correct" later. 

The lines in question are posted below.
Line 1024

 def refresh_behaviour(*args):
            behaviour = (self.icon_behavior, self.overlay_icons, self.icon_overlay_swap)

Line 1223

behaviour = (self.icon_behavior, self.overlay_icons, self.icon_overlay_swap)

Line 1072

self.createMainMenu()

Line 1137

self.safe_load_icon('gtk-execute', size, gtk.ICON_LOOKUP_USE_BUILTIN),

Line 1043-1046

False, config.BIND_METHOD_FALLBACK)

        refresh_behaviour()   			
		
        icon_behave.connect('changed', icon_behave_callback)

If someone knows an easier way please advise.

Edit:  Actually, after sleeping on it I am wondering if there is a way to change the docks themes via the terminal? Yesterday I installed the tango-icon-themes as per the wiki but without awn-settings working was unable to activate them.  If someone has a suggestion for changing the theme via terminal that may solve my problem.  I asked google this question several different ways to no avail.

Last edited by jallenusn (2012-06-24 05:46:37)

Offline

#2 2012-06-11 20:09:31

jallenusn
Member
Registered: 2012-06-11
Posts: 34

Re: [Solved] AWN-settings gtk-missing-image

Is there a way to change the AWN theme from the terminal?  I downloaded the tango theme which is supposed to fix the issue however I cannot figure out how to enable it without opening the preferences menu. 

I have attempted https://bbs.archlinux.org/viewtopic.php?id=123477 & https://bbs.archlinux.org/viewtopic.php?id=107123

I have installed gtk-icon-themes as per https://bbs.archlinux.org/viewtopic.php?id=118997

Explicitly followed the instructions in the wiki as well with no luck.  Not sure why this is such a PITA.

Last edited by jallenusn (2012-06-11 20:10:40)

Offline

#3 2012-06-21 16:46:24

Caldazar
Member
Registered: 2012-06-21
Posts: 38

Re: [Solved] AWN-settings gtk-missing-image

Hi, I'm working on this issue also, over at Chakra CCR.

Here is what I figured out so far:

Problem:
1. awn-settings is searching for the icons of its gui.
2. If one of them is missing, it tries to substitute it with the icon named "gtk-missing-image"
3. If it doesn't find this neither, the error happens and awn-settings won't start.

All this happens in /usr/share/avant-window-navigator/awn-settings/awnClass.py lines 1017 - 1047
As soon as I substituted both occurences of "gtk-missing-image" with "folder" (or any random kde icon) there, it works.

When you open awn-settings then, you'll see, that "Task-Manager" and "Advanced" have the folder as their icon.
The according errors in the commandline are:

Could not locate the following icon: gtk-execute
Could not locate the following icon: gtk-properties

Now for a kde-version of awn, all we have to figure out is
1. where those two icons get called (through the "safe_load_icon()" method) and replace their names with their kde equivalents.
2. Maybe replace the fallback icon with something more meaningfull than "folder"

Last edited by Caldazar (2012-06-21 16:49:48)


4.4.11-1-lts #1 SMP Thu May 19 21:03:24 CEST 2016 x86_64 GNU/Linux
KDE
AMD Phenom II X4 960T - AMD Radeon HD 6670 with Catalyst - 24GB RAM

Offline

#4 2012-06-22 22:01:14

Caldazar
Member
Registered: 2012-06-21
Posts: 38

Re: [Solved] AWN-settings gtk-missing-image

Here's the patch to fix the problem and make awn work on kde without a gtk icon theme.

You can implement the changes directly in the python files in /usr/share/avant-window-navigator/awn-settings/.
Maybe you'll have to reboot afterwards, to make them work because the icons are cached as far as I understand.


4.4.11-1-lts #1 SMP Thu May 19 21:03:24 CEST 2016 x86_64 GNU/Linux
KDE
AMD Phenom II X4 960T - AMD Radeon HD 6670 with Catalyst - 24GB RAM

Offline

#5 2012-06-24 05:46:12

jallenusn
Member
Registered: 2012-06-11
Posts: 34

Re: [Solved] AWN-settings gtk-missing-image

Caldazar:  Thanks man.  I had already moved over to Cairo-Dock but I will give awn another shot sometime this weekend.  I genuinely appreciate your help with this.  I will mark as solved.

Offline

Board footer

Powered by FluxBB