File: AppImage.sh

package info (click to toggle)
avogadrolibs 1.100.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 77,996 kB
  • sloc: cpp: 127,202; ansic: 2,212; python: 1,433; perl: 321; sh: 83; makefile: 43
file content (13 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# The purpose of this custom AppRun script is
# to export Open Babel environment variables
# before launching the application

HERE="$(dirname "$(readlink -f "${0}")")"

export LD_LIBRARY_PATH="${HERE}/usr/lib:${LD_LIBRARY_PATH}"
export BABEL_DATADIR=$(readlink -f "${HERE}/usr/share/openbabel/*/")
export BABEL_LIBDIR=$(readlink -f "${HERE}/usr/lib/openbabel/")

exec "${HERE}/usr/bin/avogadro2" "$@"