Conversation
imv.desktop ran `imv %F`. A file manager passes only the clicked file, so imv got a one-image playlist and next/prev never had anywhere to go. Use `imv-dir`, shipped with the imv package, which opens the containing directory starting on the clicked file and passes a multi-file selection through unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QwfWKHRhdugyEYHc28UsP1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11292.
applications/imv.desktoprunsimv %F. A file manager passes only the file you clicked, so imv is handed a one-image playlist and next/prev — the arrow keys,[/],n/p— have nowhere to go. Up/Down still zoom, so it reads as "the arrow keys are broken" rather than "there is nothing to navigate to."The imv package already ships
/usr/bin/imv-dirfor exactly this:So a single image opens its whole containing folder and starts on the one that was clicked, while a multi-file selection passes straight through to
imvunchanged. No new dependency —imv-dircomes from the sameimvpackage already inomarchy-base.packages.The migration refreshes the copy in
~/.local/share/applications/, following the same shape as theDocker.desktoprefresh in 1787580187.This was reported before in #4050 and closed with "Arrow keys only work when you open multiple images at once" — true of imv as invoked, but three people followed up saying it still wasn't what they expected, and one posted a hand-rolled
sh -cwrapper doing whatimv-diralready does. Opening a folder's worth of images from one click is what eog, gwenview and Loupe all do.Testing
./test/all: 231 of 236 test files pass. The 5 failures (config,locate,runtime-smoke,snapper,unowned-system-paths) fail identically onquattrowithout this change — they want anomarchy-pkgscheckout or a clean graphical session.Migration checked against temporary homes for all three states:
~/.local/share/applications/imv.desktop→ no-op, exit 0Exec=imv %F→ rewritten toExec=imv-dir %FVerified on the running desktop: after the change,
gio open ~/Downloads/Armero.pnglaunchesand left/right walk the folder.
🤖 Generated with Claude Code
https://claude.ai/code/session_01QwfWKHRhdugyEYHc28UsP1