Skip to content

Commit

Permalink
snap: Use SNAPCRAFT_ARCH_TRIPLET for pulseaudio library workaround (#188
Browse files Browse the repository at this point in the history
)

Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw authored and mikf committed Mar 13, 2019
1 parent 6dae6be commit d398b1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 64 deletions.
8 changes: 0 additions & 8 deletions snap/local/launchers/gallery-dl-launch
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ set \
-o nounset \
-o pipefail

if ! test -v SNAP_ARCH_TRIPLET; then
printf 'Error: SNAP_ARCH_TRIPLET not set, this launcher requires workaround-snap-arch-triplet-launch launcher to work.\n' >&2
exit 1
fi

# Satisfy FFmpeg's usr/lib/ARCH/pulseaudio/libpulsecommon-11.1.so dependency
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}":"$SNAP"/usr/lib/"${SNAP_ARCH_TRIPLET}"/pulseaudio

# Use user's real home directory for canonical configuration path access
# FIXME: Waiting for Snap Store assertion
declare REALHOME="$(
Expand Down
55 changes: 0 additions & 55 deletions snap/local/launchers/workaround-snap-arch-triplet-launch

This file was deleted.

5 changes: 4 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ apps:
gallery-dl:
adapter: full
command-chain:
- bin/workaround-snap-arch-triplet-launch
- bin/gallery-dl-launch
command: bin/gallery-dl
environment:
LANG: C.UTF-8
LC_ALL: C.UTF-8

# Satisfy FFmpeg's libpulsecommon dependency
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio

HOME: $SNAP_USER_COMMON

0 comments on commit d398b1d

Please sign in to comment.