mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
fixes
This commit is contained in:
parent
78aa85200e
commit
264a247558
@ -7,15 +7,15 @@ source-code: https://github.com/sleuthkit/autopsy/
|
|||||||
website: https://www.autopsy.com/
|
website: https://www.autopsy.com/
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
grade: stable # must be 'stable' to release into candidate/stable channels
|
grade: stable # must be 'stable' to release into candidate/stable channels
|
||||||
confinement: devmode # or classic # use 'strict' once you have the right plugs and slots
|
confinement: strict # or classic # use 'strict' once you have the right plugs and slots
|
||||||
architectures: [amd64]
|
architectures: [amd64]
|
||||||
compression: lzo
|
compression: lzo
|
||||||
icon: snap/gui/autopsy.png
|
icon: snap/gui/autopsy.png
|
||||||
|
|
||||||
# plugs:
|
plugs:
|
||||||
# system-files-autopsy:
|
system-files-autopsy:
|
||||||
# interface: system-files
|
interface: system-files
|
||||||
# read: [/dev]
|
read: [/dev]
|
||||||
|
|
||||||
# does not appear necessary as writing to home directory gets written to $SNAP_USER_DATA: https://snapcraft.io/docs/environment-variables
|
# does not appear necessary as writing to home directory gets written to $SNAP_USER_DATA: https://snapcraft.io/docs/environment-variables
|
||||||
# layout:
|
# layout:
|
||||||
@ -32,6 +32,7 @@ apps:
|
|||||||
jdkhome: $SNAP/usr/lib/jvm/java-17-openjdk-amd64
|
jdkhome: $SNAP/usr/lib/jvm/java-17-openjdk-amd64
|
||||||
# provide means for java gstreamer to find gstreamer libs
|
# provide means for java gstreamer to find gstreamer libs
|
||||||
jreflags: $jreflags '-Djava.io.tmpdir=$HOME/tmp' '-Djna.library.path=$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/local/lib'
|
jreflags: $jreflags '-Djava.io.tmpdir=$HOME/tmp' '-Djna.library.path=$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/local/lib'
|
||||||
|
LD_LIBRARY_PATH: $SNAP/usr/local/lib:$LD_LIBRARY_PATH
|
||||||
#LD_LIBRARY_PATH: ${SNAP}/usr/local/lib:${SNAP}/usr/lib/x86_64-linux-gnu/gstreamer-1.0:${SNAP}/usr/lib/x86_64-linux-gnu:${SNAP}/lib/x86_64-linux-gnu:${SNAP}/usr/lib/x86_64-linux-gnu/glib-2.0:${LD_LIBRARY_PATH}
|
#LD_LIBRARY_PATH: ${SNAP}/usr/local/lib:${SNAP}/usr/lib/x86_64-linux-gnu/gstreamer-1.0:${SNAP}/usr/lib/x86_64-linux-gnu:${SNAP}/lib/x86_64-linux-gnu:${SNAP}/usr/lib/x86_64-linux-gnu/glib-2.0:${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
|
||||||
@ -40,9 +41,9 @@ apps:
|
|||||||
GST_PLUGIN_SCANNER: $SNAP/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner
|
GST_PLUGIN_SCANNER: $SNAP/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner
|
||||||
SOLR_LOGS_DIR: $HOME/.autopsy/dev/solr/logs
|
SOLR_LOGS_DIR: $HOME/.autopsy/dev/solr/logs
|
||||||
SOLR_PID_DIR: $HOME/.autopsy/dev/solr/logs
|
SOLR_PID_DIR: $HOME/.autopsy/dev/solr/logs
|
||||||
command-chain:
|
# command-chain:
|
||||||
- autopsy/bin/tmpsetup.sh
|
# - autopsy/bin/tmpsetup.sh
|
||||||
command: autopsy/bin/autopsy
|
command: autopsy/bin/autopsywrapper.sh
|
||||||
# More info here: https://snapcraft.io/docs/gnome-extension
|
# More info here: https://snapcraft.io/docs/gnome-extension
|
||||||
extensions: [ gnome ]
|
extensions: [ gnome ]
|
||||||
common-id: org.sleuthkit.autopsy
|
common-id: org.sleuthkit.autopsy
|
||||||
@ -76,7 +77,7 @@ apps:
|
|||||||
- raw-usb
|
- raw-usb
|
||||||
- removable-media
|
- removable-media
|
||||||
- sd-control
|
- sd-control
|
||||||
# - system-files-autopsy
|
- system-files-autopsy
|
||||||
- system-observe
|
- system-observe
|
||||||
- system-trace
|
- system-trace
|
||||||
- udisks2
|
- udisks2
|
||||||
@ -192,9 +193,14 @@ parts:
|
|||||||
# snaps run applications with different permissions. This ensures applications can run.
|
# snaps run applications with different permissions. This ensures applications can run.
|
||||||
chmod 755 "$AUTOPSY_LOCATION/bin/autopsy"
|
chmod 755 "$AUTOPSY_LOCATION/bin/autopsy"
|
||||||
|
|
||||||
echo '#!/bin/bash' > $AUTOPSY_LOCATION/bin/tmpsetup.sh
|
cat <<EOF > $AUTOPSY_LOCATION/bin/autopsywrapper.sh
|
||||||
echo 'mkdir -p $HOME/tmp' >> $AUTOPSY_LOCATION/bin/tmpsetup.sh
|
#!/bin/bash
|
||||||
chmod 755 $AUTOPSY_LOCATION/bin/tmpsetup.sh
|
mkdir -p \$HOME/tmp
|
||||||
|
echo Starting Autopsy...
|
||||||
|
\$SNAP/autopsy/bin/autopsy 2>&1 | tee \$HOME/logging.txt
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod 755 $AUTOPSY_LOCATION/bin/autopsywrapper.sh
|
||||||
|
|
||||||
# include this line to print all set variables
|
# include this line to print all set variables
|
||||||
# sed -i '129 i set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"' "$AUTOPSY_LOCATION/platform/lib/nbexec"
|
# sed -i '129 i set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"' "$AUTOPSY_LOCATION/platform/lib/nbexec"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user