#!/bin/bash
# prevent creation of multiple folders in $HOME
HOME=~/.inspire
horst=()
# set path, so that a file can be opened.
for var in "$@"
do
if [ -e "$var" ]; then horst+=("$PWD/$var") ; else horst+=("$var") ;fi
done
# This script launches ActivInspire. It is partially based on the upstream launch script, with obsolete and Ubuntu-specific stuff fixed or removed.
cd /opt/activsoftware
# Promethean software has a bug that often causes it to hang when attempting to close it using the GUI. So we need to kill those instances before launching a new one.
# kill only when no active window exits
if [ $(wmctrl -l | grep ActivInspire | wc -l) -gt 0 ] ; then : ; else killall -q Inspire ; fi
# ActivInspire needs 32-bit Java for the equation editor (see optional dependencies).
export JAVA_HOME=/usr/lib32/jvm/java32-8-jre/jre
# Promethean ships ActivInspire with a bunch of libraries. We can't recompile it and there are less problems when using this library versions.
export LD_LIBRARY_PATH="/opt/activsoftware:/opt/activsoftware/workbench:/opt/activsoftware/workbench/lib:/opt/activsoftware/32bit_libs_for_64bit_OS:$LD_LIBRARY_PATH"
export GST_PLUGIN_PATH="/opt/activsoftware/32bit_libs_for_64bit_OS:$GST_PLUGIN_PATH"
export QTWEBKIT_PLUGIN_PATH="/opt/activsoftware/32bit_libs_for_64bit_OS:$QTWEBKIT_PLUGIN_PATH"
# Launch and open the file if one was given as an argument.
./Inspire "${horst[@]}"
# This is a lock file. Since ActivInspire hangs when attempting to close it, it never gets deleted, causing problems.
# remove only, when no windows exists
if [ $(wmctrl -l | grep ActivInspire | wc -l) -gt 0 ] ; then : ; else rm -f /dev/shm/sem.promethean ; fi
Pinned Comments
Malstrond commented on 2022-12-02 08:02 (UTC)
This package is currently outdated.
However the new version 2.24.69389 [1] has the following new dependencies:
libweb.so.6 - Not packaged by arch, only .7 is available
libre.so.5 - Not packaged by arch, only .9 is available
It is looking for symbol _ZN3re23RE23Arg12parse_stringEPKcmPv in its own packaged libQt6WebEngineCore.so.6, which does not exist. If you make it use the libQt6WebEngineCore.so.6 form the Arch package qt6-webengine, it is looking for Symbol _ZN9QtPrivate25QMetaTypeInterfaceWrapperI4QUrlE8metaTypeE, which does not exist in the Arch version of the library.
I'm unable to resolve these dependencies, disowning.
1: http://activsoftware.co.uk/linux/repos/ubuntu/pool/focal/a/ac/activinspire_2004-2.24.69389-1-amd64.deb