File: call-imv-from-libexec.patch

package info (click to toggle)
imv 5.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 596 kB
  • sloc: ansic: 7,458; sh: 10; makefile: 8
file content (36 lines) | stat: -rw-r--r-- 1,085 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Call imv from the "private" namespace /usr/libexec/imv.
 The imv wrapper can't be installed in PATH because of a name clash with
 the renameutils package. It's installed under /usr/libexec/imv instead,
 so files calling it should be patched accordingly.
Author: Paride Legovini <paride@debian.org>
Forwarded: not-needed
Reviewed-By: xiao sheng wen <atzlinux@sina.com>
Last-Update: 2025-12-08

---
diff --git a/files/imv.desktop.in b/files/imv.desktop.in
index 0b4c4a4..a179f74 100644
--- a/files/imv.desktop.in
+++ b/files/imv.desktop.in
@@ -3,7 +3,7 @@ Name=imv
 GenericName=Image viewer
 GenericName[en_US]=Image viewer
 Comment=Fast Image Viewer
-Exec=imv %F
+Exec=/usr/libexec/imv/imv %F
 NoDisplay=true
 Terminal=false
 Type=Application
diff --git a/contrib/imv-dir b/contrib/imv-dir
index b50ddcc..c609f1d 100755
--- a/contrib/imv-dir
+++ b/contrib/imv-dir
@@ -1,6 +1,6 @@
 #!/bin/sh -efu
 if [ $# -ge 2 ]; then
-  exec imv "$@"
+  exec /usr/libexec/imv/imv "$@"
 else
-  exec imv -n "$1" "$(dirname "$1")"
+  exec /usr/libexec/imv/imv -n "$1" "$(dirname "$1")"
 fi