vimiv-qt icon indicating copy to clipboard operation
vimiv-qt copied to clipboard

WARNING <metadata> Please install either py3exiv2 or piexif for metadata support.<br>

Open fuguesoft opened this issue 4 months ago • 4 comments

Specs

[x] Operating System: Debian GNU/Linux 13.0 (trixie)
[x] Desktop Environment: sway/WM
[x] Terminal Emulator: foot
[x] Shell: fish

Description

I'm trying to use vimiv as my default image viewer. I've created a .desktop file at /usr/share/applications/vimiv.desktop and set all image/<ext> entries to use vimiv.desktop Whenever I open a file via my file browser vifm, I see the following message printed to the terminal:

[18:41:12] WARNING  <metadata>           Please install either py3exiv2 or piexif for metadata support.<br>
For more information see<br>
https://karlch.github.io/vimiv-qt/documentation/metadata.html

I've installed python3-py3exiv2 to attempt to suppress the error message but it's had no effect. Honestly I couldn't care less about metadata at the moment so ideally I could just change the Exec line to this:

Exec=vimiv "2> /dev/null"

Unfortunately, that won't run.

Steps to reproduce

  1. Create a vimiv.desktop file at /usr/share/applications/ with the following lines:
[Desktop Entry]
Type=Application
Name=vimiv
Exec=vimiv
Icon=vimiv
  1. Edit $XDG_CONFIG_HOME/mimeapps.list with the following lines:
image/jpeg=vimiv.desktop
image/png=vimiv.desktop
  1. Open vimiv in vifm or conversly, a terminal with:
vimiv *
  1. Close with q
  2. Observe warning message

Maybe only steps three and four are actually needed but that's what I'm working with.

Expected behavior

I would want some way to suppress this warning, preferably by default.

Screenshots

https://0x0.st/KHw0.mp4

Logs

Your environment

Self-service

I'd be willing to fix this bug myself.

fuguesoft avatar Sep 01 '25 00:09 fuguesoft

related: #744 #855

fuguesoft avatar Sep 01 '25 00:09 fuguesoft

So I ended up doing this as a temporary workaround:

~/.local/bin/vimiv-hack.sh

#!/usr/bin/env bash

/home/fugue/.local/bin/vimiv * 2> /dev/null

/usr/share/applications/vimiv.desktop

[Desktop Entry]
Type=Application
Name=vimiv
Exec=/home/fugue/.local/bin/vimiv-hack.sh
Icon=vimiv

fuguesoft avatar Sep 01 '25 02:09 fuguesoft

Do you still get the warning after installing these packages? It seems like both need to be installed.

sudo apt install python3-piexif python3-py3exiv2

P.S. This is unrelated, but since you mentioned using Vifm, adding the following to your vifmrc might also be helpful:

filextype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
        \ {Vimiv} vimiv 2>/dev/null &,

qadzek avatar Oct 08 '25 07:10 qadzek

Thank you I’ll have a look and report back ( ̄^ ̄)ゞ

fuguesoft avatar Oct 08 '25 20:10 fuguesoft