linuxmint / nemo-extensions

A set of extensions for Nemo
416 stars 150 forks source link

nemo-preview - missing dependency gir1.2-gtksource-4 #445

Open smurphos opened 2 years ago

smurphos commented 2 years ago

Mint 20.3 - Cinnamon 5.7.2 nemo-preview 5.2.1+una

I purged / autoremoved xed a couple of days ago which took gir1.2-gtksource-4 with it

steve@steve-Inspiron-5580:~$ apt rdepends gir1.2-gtksource-4
gir1.2-gtksource-4
Reverse Depends:
  libgtksourceview-4-dev
  virt-manager
  gedit
  virt-manager
  ruby-gtksourceview4
  gnome-builder
  gedit-plugin-translate
  gedit-plugin-smart-spaces
  gedit-plugin-git
  gedit-plugin-color-schemer
  gedit-plugin-code-comment
  xed
  gedit

Without gir1.2-gtksource-4 nemo-preview fails for all mime-types. Run from the command line it seg-faults.

steve@steve-Inspiron-5580:~$ nemo-preview

(nemo-preview-start:1057462): Cjs-CRITICAL **: 20:19:13.128: JS ERROR: Error: Requiring NemoPreview, version none: Typelib file for namespace 'GtkSource', version '4' not found
@/usr/share/nemo-preview/js/ui/fallbackRenderer.js:33:21
@/usr/share/nemo-preview/js/ui/mimeHandler.js:28:26
@/usr/share/nemo-preview/js/viewers/gst.js:41:21

Segmentation fault (core dumped)

Manually installing gir1.2-gtksource-4 fixes the issue

steve@steve-Inspiron-5580:~$ apt install gir1.2-gtksource-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libigdgmm11:i386
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed
  gir1.2-gtksource-4
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/17.7 kB of archives.
After this operation, 93.2 kB of additional disk space will be used.
Selecting previously unselected package gir1.2-gtksource-4:amd64.
(Reading database ... 478266 files and directories currently installed.)
Preparing to unpack .../gir1.2-gtksource-4_4.6.0-1_amd64.deb ...
Unpacking gir1.2-gtksource-4:amd64 (4.6.0-1) ...
Setting up gir1.2-gtksource-4:amd64 (4.6.0-1) ...
steve@steve-Inspiron-5580:~$ nemo-preview
Cjs-Message: 20:20:19.749: JS LOG: Register mimetype application/mxf
Cjs-Message: 20:20:19.749: JS LOG: Register mimetype application/ogg
...etc...