Commit dca8793c authored by Gibbs, Ian's avatar Gibbs, Ian
Browse files

Merge branch 'i0x-main-patch-096e' into 'main'

rebuild font cache

See merge request !59
parents e2d2a5fd 4b281dab
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
Name:           nsd-app-wrap
Version:        1.64
Version:        1.65
Release:        1%{?dist}
Summary:        Wrapper scripts to launch python applications installed via anaconda
Vendor:         Peter F. Peterson
@@ -89,6 +89,9 @@ install -m 644 desktop/garnet.desktop %{buildroot}%{_datadir}/a

%changelog

* Fri May 24 2024 Ian Gibbs
- bugfix, quicknxs rebuild font cache

* Wed Apr 17 2024 Ian Gibbs
- bugfix, expgui passthrough cmdline

+15 −3
Original line number Diff line number Diff line
@@ -4,13 +4,25 @@
# current default is system version
CONDA_ENVIRON=quicknxs-v1

# set the command to execute under the above environment
COMMAND="quicknxs"

if [ -v CONDA_ENVIRON ]; then

    # import library to do the real work
    source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"

    # put together arguments - conda_env, application, argv
    args=("${CONDA_ENVIRON}" "quicknxs" "$@")
    # override the normal call to activate_and_launch() function

    _remove_font_cache

    # rebuild the font cache
    fc-cache -r

    # start the application
    activate_and_launch "${args[@]}"
    activate_conda_environment "${CONDA_ENVIRON}"

    echo "Execute: ${COMMAND} $*"
    "${COMMAND}" "$@"

fi