gtk3/debian/libgtk-3-0.postinst.in
Simon McVittie 0cecd17680 Remove dpkg trigger on old immodules search path
GTK 3 hasn't searched this path since 2015, so it was no longer useful
to have a trigger on it.
2022-12-02 10:18:50 +00:00

20 lines
433 B
Bash

#!/bin/sh
set -e
IMMODULES_DIR=/@MODULES_BASE_PATH@/immodules
if [ "$1" = triggered ]; then
# This is triggered everytime an application installs a
# GTK immodule loader
/@LIBDIR@/@SHARED_PKG@/gtk-query-immodules-3.0 --update-cache || true
exit 0
fi
#DEBHELPER#
# Also handle the initial installation
if [ -d "$IMMODULES_DIR" ]; then
/@LIBDIR@/@SHARED_PKG@/gtk-query-immodules-3.0 --update-cache || true
fi