#!/bin/sh

. shell-error

[ -n "$DISPLAY" ] ||
    fatal "Variable DISPLAY is not set"

[ -n "$XAUTHORITY" ] ||
    fatal "Variable XAUTHORITY is not set"

pkexec env DISPLAY="$DISPLAY" XAUTHORITY="$XAUTHORITY" /usr/sbin/synaptic
