diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-30 19:55:29 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-30 19:55:29 +0100 |
| commit | 3e38d067fd853e4884530169456eb9b489c2705b (patch) | |
| tree | d686320be10a87e897228da158e91c4a24936ea1 | |
| parent | abd08877787c9d32b604f08071e9adc3e3060139 (diff) | |
| download | upscale-qt-3e38d067fd853e4884530169456eb9b489c2705b.tar.gz upscale-qt-3e38d067fd853e4884530169456eb9b489c2705b.zip | |
Freedesktop file-manager action for pcmanfm-qt and similar, shown for
a single selected image.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | AGENTS.md | 5 | ||||
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | upscale-qt-action.desktop | 14 |
3 files changed, 26 insertions, 1 deletions
@@ -17,6 +17,11 @@ the repo, so edits are live on the next launch: ~/bin/upscale-qt -> upscale-qt ~/.local/share/applications/upscale-qt.desktop -> upscale-qt.desktop + ~/.local/share/file-manager/actions/upscale-qt.desktop -> upscale-qt-action.desktop + +The last one is the pcmanfm-qt right-click action (freedesktop +file-manager actions format, single selection only since the app opens one +image). Design spec: `docs/superpowers/specs/2026-10-30-upscale-qt-design.md`. @@ -16,7 +16,13 @@ Symlink the script and menu entry into your home directory, so later updates of ln -s "$PWD/upscale-qt.desktop" ~/.local/share/applications/upscale-qt.desktop update-desktop-database ~/.local/share/applications -The menu entry uses the `zoom-in` icon from your icon theme and registers for common image types, so "Open with" works from a file manager. To uninstall, remove the two symlinks. +The menu entry uses the `zoom-in` icon from your icon theme and registers for common image types, so "Open with" works from a file manager. + +For a right-click "Upscale with upscale-qt" item in file managers that read freedesktop file-manager actions (pcmanfm-qt, Caja, Nemo), with exactly one image selected: + + ln -s "$PWD/upscale-qt-action.desktop" ~/.local/share/file-manager/actions/upscale-qt.desktop + +To uninstall, remove the symlinks. ## Usage diff --git a/upscale-qt-action.desktop b/upscale-qt-action.desktop new file mode 100644 index 0000000..4986f67 --- /dev/null +++ b/upscale-qt-action.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Type=Action + +Name=Upscale with upscale-qt +Name[it]=Ingrandisci con upscale-qt + +Icon=zoom-in +Profiles=profile-zero; + +[X-Action-Profile profile-zero] +MimeTypes=image/png;image/jpeg;image/webp;image/bmp;image/tiff; +SelectionCount==1 +Exec=upscale-qt %f +Name=Default profile |
