#!/bin/bash

datadir=$(cd $(dirname "$0") && pwd)

. ${datadir}/common.fnc

# Check
if [ "$1" == "-c" ] ; then
	echo FALSE
	
# Install
elif [ "$1" == "-i" ] ; then
	echo -----
	echo パネルの設定をインストール直後の状態に戻します。
	
	prof=$(ps alxxx | grep lxpanel | grep -v grep | grep -v pcmanfm | \
	       grep -m 1 '\-\-profile' | sed -e 's/^.*--profile\s\+//igm' | cut -d\  -f1)
	
	killall lxpanel
	
	cp -rfT /etc/skel/.config/lxpanel "${HOME}/.config/lxpanel"
	
	echo "LXPanel の再起動処理を登録しています..."
	_postreg "lxpanel --profile ${prof}"
			
	_log LXPanel の設定が完了しました。
	echo
	
# Purge
elif [ "$1" == "-p" ] ; then
	echo
fi
