mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Feed the image folder to the Image Viewer so the next/previous image navigation works (#1444)
* Feed the image folder to the Image Viewer so the next/previous image navigation works When double clicking an image in Nautilus, my expectation is that I can navigate to the other images in the folder with the arrow keys. This doesn't happen currently because the imv command receives only the filename as a parameter. However, if we use: `imv -n /myfolder/image.jpg /myfolder` works becasue we're opening the folder starting at the image given by the -n parameter. * add migration for imv.desktop update * Simplify migration --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Name=Image Viewer
|
||||
Exec=imv %F
|
||||
Exec=sh -c 'imv -n "$1" "$(dirname "$1")"' sh %f
|
||||
Icon=imv
|
||||
Type=Application
|
||||
MimeType=image/png;image/jpeg;image/jpg;image/gif;image/bmp;image/webp;image/tiff;image/x-xcf;image/x-portable-pixmap;image/x-xbitmap;
|
||||
|
||||
Reference in New Issue
Block a user