This might be a bit more involved than you were hoping for, but I believe I have one possible solution to your issue. First, install the policykit-1, qt5ct, sensible-utils and util-linux packages from your distribution's package repository, if they're not already installed. On most Debian-based distributions this is accomplished using the following command in the terminal:
Code: Select all
sudo apt install policykit-1 qt5ct sensible-utils util-linux
With that done, it's now necessary to modify the launcher shell script. This command will open the file in a text editor with the necessary permissions:
Code: Select all
pkexec sensible-editor /opt/XnView/xnview.sh
It's necessary to make extensive modifications to the file; for the sake of clarity I'm including the entire script contents with the changes present below for an easy copy/paste. A copy of the script is also attached to this post.
Code: Select all
#!/usr/bin/env bash
#
# XnViewMP launch helper shell script for POSIX (*nix) environments
# https://www.xnview.com/
#
# SPDX-FileCopyrightText: © Peter J. Mello <admin@petermello.net>, 2020.
# SPDX-License-Identifier: MPL-2.0
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain
# one at <https://mozilla.org/MPL/2.0/>.
#
# Launch XnViewMP GUI and fork into a new session as process group leader
set -e
set -o pipefail
# Allow the script to be called from any directory and through symlinks
XNVIEW_DIR="$(dirname "$(test -L "${BASH_SOURCE[0]}" &&
realpath -Leq "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")"
typeset -rg XNVIEW_DIR
LD_LIBRARY_PATH="${XNVIEW_DIR}/lib:${XNVIEW_DIR}/Plugins${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
QT_PLUGIN_PATH="${XNVIEW_DIR}/lib${QT_PLUGIN_PATH:+:$QT_PLUGIN_PATH}"
typeset -gx LD_LIBRARY_PATH QT_PLUGIN_PATH
command -v qt5ct &>/dev/null && typeset -gx QT_QPA_PLATFORMTHEME="qt5ct"
setsid "${XNVIEW_DIR:-/opt/XnView}/XnView" "${@}" &>/dev/null </dev/null & disown
With those changes saved successfully, you simply need to run qt5ct and make sure anti-aliasing is disabled. Hope this helps.