#!/bin/sh

BUDGIE_VERSION="@PACKAGE_VERSION@"

if [ "$1" = "--version" ]; then
    echo "budgie-desktop $BUDGIE_VERSION"
    echo "Copyright © 2014-2016 Ikey Doherty, Solus Project"
    exit 0
fi

if [ -z $XDG_CURRENT_DESKTOP ]; then
  XDG_CURRENT_DESKTOP=Budgie:GNOME
  export XDG_CURRENT_DESKTOP
fi

exec gnome-session --session=budgie-desktop $*
