So, I saw this and thought to try it with cctv-viewer
viewtopic.php?t=9043
I used fresh fugal install Bullseye DDOG (with sytemd)
Code: Select all
curl -H 'Snap-Device-Series: 16' http://api.snapcraft.io/v2/snaps/info/cctv-viewer >> cctv-viewer.info
Download the snap package (approx 288MB), renamed as sfs, extract content (approx 735MB) to /usr/share/cctv-viewer
I copy Fred's script, substituted spotify
with cctv-viewer
.
Gave it execute permission.
Code: Select all
#!/bin/sh
LAUNCHDIR="$(dirname "$(readlink -f "$0")")"
export SNAP_LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LAUNCHDIR/command-chain:$LAUNCHDIR/usr/share/cctv-viewer:$LAUNCHDIR/lib:$LAUNCHDIR/usr/lib:$LAUNCHDIR/lib/x86_64-linux-gnu:$LAUNCHDIR/usr/lib/x86_64-linux-gnu"
export LD_LIBRARY_PATH="$LAUNCHDIR/lib/x86_64-linux-gnu:$LAUNCHDIR/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH=$SNAP_LIBRARY_PATH:$LD_LIBRARY_PATH
exec $LAUNCHDIR/usr/share/cctv-viewer/cctv-viewer "$@"
Got this when running script. The path doesn't look right...duplicated?
What did I do wrong?
.
.