summarylogtreecommitdiffstats
path: root/xnview.sh
diff options
context:
space:
mode:
authorKevin Brodsky2020-01-11 16:06:54 +0000
committerKevin Brodsky2020-01-11 16:30:23 +0000
commit776257a166a7195326f050094f488ff42c6e02ef (patch)
tree6575dc1137f993df75d57d5da4b25d0c61207dd8 /xnview.sh
parent9fa07074d8e8366ad5cdcff2e403ffe432208cc0 (diff)
downloadaur-776257a166a7195326f050094f488ff42c6e02ef.tar.gz
upgpkg: 0.94.2-2 (big refactor)
The latest update to libwebp (1.1) broke XnView, because it tries to link against the system libwebpmux.so while using the packaged libwebp.so (in Plugins). Because of this, I realised that there is no point in using the packaged plugins, since they are all libraries available in standard Arch packages. This commit replaces them with symlinks to system libs (as XnView is still unhappy if it cannot find them in Plugins/), and adds the relevant dependencies. While at it, I also realised that a lot of files are junk and don't need to be installed, and that many permissions are wrong. Fix all that by specifying which files/directories to install (instead of removing some), and only making executable those that should be. Finally, it looks the bug that prevented me from getting rid of lib/ altogether is gone, so there's no need to symlink the Qt plugin directories any more. As a result, the only use we still have for xnview.sh is the LD_PRELOAD hack, and we don't need the one included in the archive any more.
Diffstat (limited to 'xnview.sh')
-rwxr-xr-xxnview.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/xnview.sh b/xnview.sh
new file mode 100755
index 000000000000..0e634686e63e
--- /dev/null
+++ b/xnview.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+xnviewmp_root=$(dirname "$(realpath "$0")")
+export LD_PRELOAD="${xnviewmp_root}/lib/qt5_std_fun_forwarder.so${LD_PRELOAD+:${LD_PRELOAD}}"
+exec "${xnviewmp_root}/XnView" "$@"