PHOC_INI=/etc/phrog/phoc.ini
[ ! -f $PHOC_INI ] && PHOC_INI=/usr/share/phrog/phoc.ini
[ ! -f $PHOC_INI ] && PHOC_INI=/etc/phosh/phoc.ini
[ ! -f $PHOC_INI ] && PHOC_INI=/usr/share/phosh/phoc.ini
export XDG_CURRENT_DESKTOP=Phrog:Phosh:GNOME
export GNOME_SESSION_AUTOSTART_DIR=/usr/share/phrog/autostart:/etc/phrog/autostart
if command -v systemd-cat >/dev/null 2>&1; then
exec > >(systemd-cat --identifier=phrog) 2>&1
elif command -v logger >/dev/null 2>&1; then
exec > >(logger -s -t phrog) 2>&1
fi
dbus_command=""
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
dbus_command=dbus-run-session
fi
exec $dbus_command phoc -S -C "${PHOC_INI}" -E 'gnome-session --session=phrog'