Christopher Bock
unread,Jul 9, 2023, 11:30:05 PM7/9/23You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Package: ranger
Version: 1.9.3-5
Severity: minor
I was wondering for a while now why i couldn't open images from ranger.
cb@asterix ~ % grep imv /etc/ranger/config/rifle.conf
mime ^image, has imv, X, flag f = imv -- "$@"
cb@asterix ~ % ls -fla ~/.config/ranger
total 10
drwxr-xr-x 2 cb cb 2 Jul 10 03:52 .
drwxr-xr-x 119 cb cb 164 Jul 10 03:52 ..
cb@asterix ~ % rifle -l ~/snips/maim_20230710-032739.png
0::f:imv -- "$@"
1::f:pqiv -- "$@"
2::f:sxiv -- "$@"
3::f:feh -- "$@"
4::f:gpicview -- "$@"
5::f:gimp -- "$@"
11:wallpaper::feh --bg-scale "$1"
12:wallpaper::feh --bg-tile "$1"
13:wallpaper::feh --bg-center "$1"
14:wallpaper::feh --bg-fill "$1"
15:open::xdg-open -- "$@"
16:open::open -- "$@"
17:::ask
18:editor::${VISUAL:-$EDITOR} -- "$@"
19:pager::"$PAGER" -- "$@"
20:trash::mkdir -p -- ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash;
mv -- "$@" ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash
cb@asterix ~ % dpkg -S /usr/bin/imv
renameutils: /usr/bin/imv
And after looking at the description of 'imv' it becomes clear that we
should use the wrapper /usr/libexec/imv/imv instead.
cb@asterix ~ % cp /etc/ranger/config/rifle.conf
~/.config/ranger/rifle.conf cb@asterix ~ % vim
~/.config/ranger/rifle.conf cb@asterix ~ % grep imv-folder
~/.config/ranger/rifle.conf mime ^image, has imv-x11, X, flag f =
/usr/libexec/imv/imv -- "$@" cb@asterix ~ % rifle -l
~/snips/maim_20230710-032739.png 0::f:/usr/libexec/imv/imv -- "$@"
1::f:pqiv -- "$@"
2::f:sxiv -- "$@"
3::f:feh -- "$@"
4::f:gpicview -- "$@"
5::f:gimp -- "$@"
11:wallpaper::feh --bg-scale "$1"
12:wallpaper::feh --bg-tile "$1"
13:wallpaper::feh --bg-center "$1"
14:wallpaper::feh --bg-fill "$1"
15:open::xdg-open -- "$@"
16:open::open -- "$@"
17:::ask
18:editor::${VISUAL:-$EDITOR} -- "$@"
19:pager::"$PAGER" -- "$@"
20:trash::mkdir -p -- ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash;
mv -- "$@" ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash
And now it works even when i uninstall imv again \o/.
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (990, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.3.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8,
LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh
linked to /usr/bin/dash Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ranger depends on:
ii python3 3.11.2-1+b1
ii sensible-utils 0.0.20
Versions of packages ranger recommends:
ii file 1:5.44-3
ii less 590-2
ii python3-chardet 5.1.0+dfsg-2
ii w3m-img 0.5.3+git20230121-2
Versions of packages ranger suggests:
ii atool 0.39.0-12
ii caca-utils 0.99.beta20-3
ii elinks 0.16.1.1-4
ii highlight 3.41-2+b6
ii lynx 2.9.0dev.12-1
ii mediainfo 23.06-1
ii mupdf-tools 1.22.1+ds1-1+b1
ii poppler-utils 22.12.0-2+b1
ii python3-pygments 2.15.1+dfsg-1
ii sudo 1.9.13p3-3
pn unoconv <none>
ii w3m 0.5.3+git20230121-2
-- no debconf information