#!/bin/bash

lib_path="/usr/lib/skype-legacy"
libexec_path="/usr/lib/skype-legacy"
data_path="/usr/share/skype-legacy"
dbpath="$HOME/.Skype"
for plug in $(ls "/usr/share/skype-legacy/scripts-4/" 2> /dev/null); do
    source "/usr/share/skype-legacy/scripts-4/$plug"
done
# LD_PRELOAD must appear only here to avoid preload errors (in foreign architectures).
exec env LD_PRELOAD="$ld_preload" $wrapper "$libexec_path/skype" "$@" "$args" \
  --resources="$data_path" --dbpath="$dbpath"
