#!/bin/bash
export GTK_THEME=Adwaita-dark

iscmd(){
    [ "$(which $1)" != "" ]
}

cd /usr/lib/pardus/pardus-oem/

if iscmd openbox ; then
    openbox &
elif iscmd mutter ; then
    mutter --x11 &
elif iscmd metacity ; then
    metacity &
elif iscmd xfwm4 ; then
    xfconf-query -c xfwm4 -p /general/workspace_count -s 1
    xfwm4 &
fi
exec python3 /usr/lib/pardus/pardus-oem/main.py
