Page 1 of 1
(Linux) Disable font smoothing in XnView interface. And .deb installation failure
Posted: Sun Aug 09, 2020 12:48 pm
by Ivan Vetrov
Hello. I have two problem with XnViewMP
1. Can I disable font smoothig (like ClearType) in XnViewMP. I disable it in Linux , but in XnView still not
it's look horrible.
2. If i try install .deb package instead oversized "flatpack" but it does not work. I installed via Synaptic manager and via gDebi. If I try to start XNviev then nothing happens.
If I try to run the installed XNviev through the terminal, then it writes to me that
Code: Select all
lester@sex-machine: /opt/XnView/./XnView
./XnView: error while loading shared libraries: libQt5MultimediaWidgets.so.5: cannot open shared object file: No such file or directory
After successfully installing what is required:
Code: Select all
lester@sex-machine:~/sudo apt-get install libqt5multimediawidgets5
XnView still doesn't work. It's write:
Code: Select all
./XnView: symbol lookup error: ./XnView: undefined symbol: _ZNSt20bad_array_new_lengthD1Ev, version Qt_5
I have Linux Mint 20 64 and XnViewMP 0.96.4 64
Re: (Linux) Disable font smoothing in XnView interface. And .deb installation failure
Posted: Wed Aug 12, 2020 4:20 pm
by xnview
Ivan Vetrov wrote: Sun Aug 09, 2020 12:48 pm
Hello. I have two problem with XnViewMP
1. Can I disable font smoothig (like ClearType) in XnViewMP. I disable it in Linux , but in XnView still not
thruncated.jpg
it's look horrible.
Sorry but i don't know
2. If i try install .deb package instead oversized "flatpack" but it does not work. I installed via Synaptic manager and via gDebi. If I try to start XNviev then nothing happens.
If I try to run the installed XNviev through the terminal, then it writes to me that
Code: Select all
lester@sex-machine: /opt/XnView/./XnView
./XnView: error while loading shared libraries: libQt5MultimediaWidgets.so.5: cannot open shared object file: No such file or directory
After successfully installing what is required:
Code: Select all
lester@sex-machine:~/sudo apt-get install libqt5multimediawidgets5
XnView still doesn't work. It's write:
Code: Select all
./XnView: symbol lookup error: ./XnView: undefined symbol: _ZNSt20bad_array_new_lengthD1Ev, version Qt_5
I have Linux Mint 20 64 and XnViewMP 0.96.4 64
Please check this
post
Re: (Linux) Disable font smoothing in XnView interface. And .deb installation failure
Posted: Wed Aug 12, 2020 5:22 pm
by cday
First, see Pierre's post above.
For your font smoothing problem you might, if you haven't already done so, try the Linux Mint forum.
People are very knowledgeable and responsive there, and although the issue you report is currently confined to XnView MP, if you post a good screenshot (attachment size limit is rather small, or you could upload to a file hosting service) someone might have an idea of a setting to change.
XnView MP uses the Qt framework, so if you don't have other Qt software installed it might be possible to overcome the problem by changing a Qt setting.
Note: It's generally best to post each issue as a separate topic, it's easier to manage and can increase the chance of getting support.
Re: (Linux) Disable font smoothing in XnView interface. And .deb installation failure
Posted: Sun Sep 20, 2020 2:41 pm
by RogueScholar
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.