diff --git a/appimg-builder/appimg-modules/setup-theme-symlinks b/appimg-builder/appimg-modules/setup-theme-symlinks new file mode 100644 index 0000000..2849ec6 --- /dev/null +++ b/appimg-builder/appimg-modules/setup-theme-symlinks @@ -0,0 +1,9 @@ +# +# /opt/share is a tree that is mounted into realm from citadel +# +mkdir -p /opt/share +ln -sf /opt/share/themes/Adapta /usr/share/themes/Adapta +ln -sf /opt/share/themes/Adapta-Eta /usr/share/themes/Adapta-Eta +ln -sf /opt/share/themes/Adapta-Nokto /usr/share/themes/Adapta-Nokto +ln -sf /opt/share/themes/Adapta-Nokto-Eta /usr/share/themes/Adapta-Nokto-Eta +ln -sf /opt/share/icons/Paper /usr/share/icons/Paper diff --git a/appimg-builder/basic-image.conf b/appimg-builder/basic-image.conf index 4562110..0307459 100644 --- a/appimg-builder/basic-image.conf +++ b/appimg-builder/basic-image.conf @@ -1,12 +1 @@ PACKAGES="man manpages vim-nox iputils-ping tmux vifm gnome-terminal firefox nautilus eog evince unzip x264" -POST_INSTALL_MODULES="setup_theme_symlinks" - -setup_theme_symlinks() { - mkdir -p /opt/share - ln -sf /opt/share/themes/Adapta /usr/share/themes/Adapta - ln -sf /opt/share/themes/Adapta-Eta /usr/share/themes/Adapta-Eta - ln -sf /opt/share/themes/Adapta-Nokto /usr/share/themes/Adapta-Nokto - ln -sf /opt/share/themes/Adapta-Nokto-Eta /usr/share/themes/Adapta-Nokto-Eta - ln -sf /opt/share/icons/Paper /usr/share/icons/Paper -} - diff --git a/appimg-builder/common.inc b/appimg-builder/common.inc index be9c7ec..20339bb 100644 --- a/appimg-builder/common.inc +++ b/appimg-builder/common.inc @@ -6,7 +6,7 @@ BASE_PACKAGES="debootstrap iproute2 less xz-utils sudo dbus libpam-systemd opens BASE_PRE_INSTALL_MODULES="utility-library configure-locale create-user set-hostname no-install-recommends write-apt-sources" -BASE_POST_INSTALL_MODULES="loginctl-enable-linger configure-systemd install-configure-host0 install-launch-script" +BASE_POST_INSTALL_MODULES="loginctl-enable-linger configure-systemd install-configure-host0 install-launch-script setup-theme-symlinks" trap "exit 1" TERM export TOP_PID=$$