← Back to team overview

zim-wiki team mailing list archive

Problem with add image FileDialog and Image Filter

 

Hi,

I have a problem with the add image dialog, but I do not know if this is
a bug or a misconfiguration on my side, since the dialog works as
expected on another (windows xp) PC.

When the file-chooser dialog opens and the 'Image'-FileFilter is active,
no images files are displayed. I have to switch the filter to 'All
Files' to see the image files.


The image files are really image files:

~ :: file /tmp/P_value.jpg 
/tmp/P_value.jpg: JPEG image data, JFIF standard 1.02
~ :: mimetype /tmp/P_value.jpg
/tmp/P_value.jpg: image/jpeg


I found the definition of the 'Image' filter in gui/widgets.py:1058

    filter.add_pixbuf_formats()

but I found no way to extract and check filter definitions after this
command.
Any ideas how I can debug the 'Image' filter?


thanks for your help,
 stefan


System: Debian lenny
Zim Revision is 222

Debug log:

INFO: This is zim 0.46
DEBUG: Python version is (2, 5, 2, 'final', 0)
DEBUG: No bzr version-info found
DEBUG: Running from a source dir: /usr/src/zim
DEBUG: Set XDG_DATA_HOME to /home/smu/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/local/share>, <Dir: /usr/share>, <Dir: /usr/share/gdm>]
DEBUG: Set XDG_CONFIG_HOME to /home/smu/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/smu/.cache
DEBUG: Running command: gui
DEBUG: Cache dir: /home/smu/Documents/Notes/.zim
DEBUG: Loading /home/smu/Documents/Notes/notebook.zim
DEBUG: Index database file: /home/smu/Documents/Notes/.zim/index.db
TODO: hook slow_fs property
INFO: Opening default notebook
INFO: Starting UnixSocketDaemon
DEBUG: Socket address: /tmp/zim-smu/daemon-socket
DEBUG: Wrote /tmp/zim-smu/daemon.pid
DEBUG: Sending to daemon: ["ping",[],{}]
DEBUG: Daemon replied: "Ack"
DEBUG: Sending to daemon: ["vivicate",["zim.gui.GtkInterface","file:///home/smu/Documents/Notes"],{"usedaemon":tru
ok":"file:///home/smu/Documents/Notes"}]
DEBUG: Child spawned 25788 (u'zim.gui.GtkInterface', u'file:///home/smu/Documents/Notes')
DEBUG: Daemon replied: true
DEBUG: Sending to daemon: ["relay",[["zim.gui.GtkInterface","file:///home/smu/Documents/Notes"],"present",null],{"
:null,"fullscreen":null}]
DEBUG: Sending to child 25788: ["present",[null],{"geometry":null,"fullscreen":null}]
DEBUG: Daemon replied: true
~ :: DEBUG: Loading /home/smu/.config/zim/preferences.conf
DEBUG: Gtk version is (2, 18, 6)
DEBUG: Pygtk version is (2, 12, 1)
DEBUG: Loading /home/smu/.config/zim/style.conf
DEBUG: Loaded plugin calendar (<CalendarPlugin object at 0xa117734 (zim+plugins+PluginClass at 0xa171390)>)
DEBUG: Registered plugin <InsertEquationPlugin object at 0xa11c34c (zim+plugins+PluginClass at 0xa161300)> for ima
equation"
DEBUG: Loaded plugin equationeditor (<InsertEquationPlugin object at 0xa11c34c (zim+plugins+PluginClass at 0xa1613
ERROR: Failed to load plugin linkmap
...



Follow ups