# -*- sh -*-
# Xsession.d script to set the GTK_MODULES env variable
# to load lunar-calendar-module
#
# This file is sourced by Xsession(5), not executed.
#
# This file need to run before destop manager.

add_module()
{
	case :$GTK_MODULES: in
		*:$1:*)
			;;
		*)
			if [ -z "$GTK_MODULES" ]
			then
				GTK_MODULES=$1
			else
				GTK_MODULES=$GTK_MODULES:$1
			fi
			;;
	esac
}

add_module lunar-calendar-module

export GTK_MODULES

# In non Chinese locale, if you want display Chinese Lunar Calendar Pinyin,
# please comment the following line:
export LUNAR_CALENDAR_IGNORE_NON_CHINESE=1
