#!/bin/sh

# daun v0.4
# Desktop-agnostic upgrade notifier - reboot notifier script
# Copyright (c) 2026 Raphaël Halimi <raphael.halimi@gmail.com>

# Source library
. /usr/lib/daun/functions


#
# Main
#

# Notify users
if [ -e "$REBOOT" ] ; then
  for L_UID in $(get_uids) ; do

    # Check if we should/can notify
    check_notify $L_UID || continue

    # Set locale
    set_locale $L_UID

    # Notify user
    notify "$L_UID" "reboot"

  done
fi
