WARNING <metadata> Please install either py3exiv2 or piexif for metadata support.<br>
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
- Create a
vimiv.desktopfile at/usr/share/applications/with the following lines:
[Desktop Entry]
Type=Application
Name=vimiv
Exec=vimiv
Icon=vimiv
- Edit
$XDG_CONFIG_HOME/mimeapps.listwith the following lines:
image/jpeg=vimiv.desktop
image/png=vimiv.desktop
- Open
vimivinvifmor conversly, a terminal with:
vimiv *
- Close with
q - 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.
related: #744 #855
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
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 &,
Thank you I’ll have a look and report back ( ̄^ ̄)ゞ