mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 04:20:23 +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;
|
||||
|
||||
4
migrations/1757273064.sh
Normal file
4
migrations/1757273064.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
echo "Allow Image Viewer to see all images in directory and use arrow keys to navigate"
|
||||
|
||||
cp -f "$HOME/.local/share/omarchy/applications/imv.desktop" "$HOME/.local/share/applications/imv.desktop"
|
||||
|
||||
Reference in New Issue
Block a user