Zim-desktop-wiki: Sourceview plugin doesnt work with libgtksourceview-3.0-1

Created on 20 Nov 2019  路  6Comments  路  Source: zim-desktop-wiki/zim-desktop-wiki

Sourceview plugin doesnt work with libgtksourceview-3.0-1
In Ubuntu 18.04.3 I have no libgtksourceview-3.0

Most helpful comment

$ sudo apt install gir1.2-gtksource-3.0

solved the problem for me (Ubuntu 16.04).

Hope it helps !
:-)

All 6 comments

$ sudo apt install gir1.2-gtksource-3.0

solved the problem for me (Ubuntu 16.04).

Hope it helps !
:-)

Dear lucvtzel !
Thank you very much!
It is works on Ubuntu 18.04 too :)

Same problem here on "Debian GNU/Linux 10 (buster)" with the default Zim 0.68.

Fixed with Zim 0.72.1 from PPA.

Zim 0.68 uses Gtk2 and the plugin imports gtksourceview2 (zim/plugins/sourceview.py#L28). Since the 0.70 version, these libraries are replaced by Gtk3 >= 3.18 and gtksourceview-3.
see README.md 0.70 : packages needed on Ubuntu. For the SourceView plugin we must install gir1.2-gtksource-3.0 too.

Lucvtzel's fix works on the 20.04 beta and 19.10 release of ubuntu as well.

Could this just be added to the list of package dependencies in the manual?

Showing package dependencies is a job of your distribution package manager. Zim in ubuntu 20.04 is properly packaged and suggests proper package for Source View plugin:

$ apt show zim | egrep 'Depends|Recommends|Suggests'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Depends: python3:any, python3-gi, python3-xdg, gir1.2-gtk-3.0, xdg-utils
Recommends: gir1.2-gtkspell3-3.0
Suggests: bzr, git, mercurial, fossil, graphviz, ditaa, scrot, dvipng, gir1.2-gtksource-3.0, python3-zeitgeist, r-base, gnuplot, lilypond

I have not checked PPA package, probably its meta info needs fixing.

Was this page helpful?
0 / 5 - 0 ratings