#!/bin/bash

if [ "`gconftool-2 --get "/apps/hedley_launcher/session_logout_visible"`" == "false" ]; then
    gconftool-2 --set "/apps/hedley_launcher/session_logout_visible" --type bool true
    if [ -x /usr/bin/hedley-session-logout ] ; then
        hedley-session-logout
    else
        xfce4-session-logout
    fi
    gconftool-2 --set "/apps/hedley_launcher/session_logout_visible" --type bool false
fi

