#!/bin/sh

if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
  echo "cinnamon-screensaver is disabled in wayland sessions. Exiting."
  exit 1
fi

export GI_TYPELIB_PATH="@typelibdir@"
export LD_LIBRARY_PATH="@pkglibdir@"

exec @install_dir@/@target@ "$@"
