updates to ld path

This commit is contained in:
Greg DiCristofaro 2023-08-06 19:59:40 -04:00
parent 8b51b9e8a1
commit 4182b3b5f3

View File

@ -44,13 +44,12 @@ plugs:
system-files-hugepages: system-files-hugepages:
interface: system-files interface: system-files
read: [/sys/kernel/mm/hugepages] read: [/sys/kernel/mm/hugepages]
# TODO may not be necessary but may provide ability for online/offline help # may provide ability for online/offline help
browser-sandbox: browser-sandbox:
interface: browser-support interface: browser-support
allow-sandbox: true allow-sandbox: true
slots: slots:
# TODO may not be necessary
# taken from thunderbird snap: https://github.com/ubuntu/thunderbird/blob/stable/snapcraft.yaml # taken from thunderbird snap: https://github.com/ubuntu/thunderbird/blob/stable/snapcraft.yaml
dbus-daemon: dbus-daemon:
interface: dbus interface: dbus
@ -68,9 +67,8 @@ apps:
# set user home to new home value to avoid issues writing cache files to home # set user home to new home value to avoid issues writing cache files to home
# can also specify '-Djdk.gtk.verbose=true' for gtk verbose logging: https://stackoverflow.com/a/22457177 # can also specify '-Djdk.gtk.verbose=true' for gtk verbose logging: https://stackoverflow.com/a/22457177
jreflags: $jreflags '-Djdk.gtk.version=3' '-Duser.home=$SNAP_USER_COMMON' '-Djava.io.tmpdir=$SNAP_USER_COMMON/tmp' '-Djna.library.path=$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/local/lib' jreflags: $jreflags '-Djdk.gtk.version=3' '-Duser.home=$SNAP_USER_COMMON' '-Djava.io.tmpdir=$SNAP_USER_COMMON/tmp' '-Djna.library.path=$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/local/lib'
# to load libtsk.so # to load libtsk.so and gstreamer
# TODO remove later if successful: LD_LIBRARY_PATH: $SNAP/usr/local/lib:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH LD_LIBRARY_PATH: $SNAP/usr/local/lib:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
LD_LIBRARY_PATH: $SNAP/usr/local/lib:$LD_LIBRARY_PATH
# make sure path is set up to ensure things like photorec are found # make sure path is set up to ensure things like photorec are found
PATH: $SNAP/usr/bin:$SNAP/usr/local/bin:$PATH PATH: $SNAP/usr/bin:$SNAP/usr/local/bin:$PATH
# gstreamer scans for plugins (i.e. app integration plugins). this tells gstreamer where to look for the scanner and libraries # gstreamer scans for plugins (i.e. app integration plugins). this tells gstreamer where to look for the scanner and libraries
@ -244,9 +242,7 @@ parts:
- packagekit-gtk3-module - packagekit-gtk3-module
plugin: nil plugin: nil
source: https://github.com/sleuthkit/autopsy.git source: https://github.com/sleuthkit/autopsy.git
# TODO remove: source: https://github.com/gdicristofaro/autopsy.git
source-branch: develop source-branch: develop
# TODO remove: source-branch: 8425-snap
build-environment: build-environment:
- JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64 - JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
- TSK_JAVA_LIB_PATH: $SNAPCRAFT_STAGE/usr/local/share/java - TSK_JAVA_LIB_PATH: $SNAPCRAFT_STAGE/usr/local/share/java