#!/bin/sh

# gnome-session wrapper for Plamo Linux

if [ ! -f $HOME/.fonts.conf ]; then

    cat > $HOME/.fonts.conf <<EOF
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- ~/.fonts.conf file to configure per-user font access -->
<fontconfig>
<!--
  Configure font to substitute when "Serif" type font specified,
  e.g. "Times" or "Nimbus Roman No9 L".
-->
	<alias>
		<family>serif</family>
		<prefer>
			<family>Kochi Mincho</family>
<!--
  Copy your favorite font from those listed below to the above.

			<family>Kochi Mincho</family>
			<family>MS PMincho</family>
-->
		</prefer>
	</alias>
<!--
  Configure font to substitute when "Sans-serif" type font specified,
  e.g. "Helvetica", "Arial" or "Nimbus Sans L".
-->
	<alias>
		<family>sans-serif</family>
		<prefer>
			<family>Kochi Gothic</family>
<!--
  Copy your favorite font from those listed below to the above.

			<family>Kochi Gothic</family>
			<family>MS UI Gothic</family>
			<family>MS PGothic</family>
			<family>Mikachan</family>
			<family>Mikachan-P</family>
-->
		</prefer>
	</alias>
<!--
  Configure font to substitute when "Monospace" type font specified,
  e.g. "Courier" or "Nimbus Mono L".
-->
	<alias>
		<family>monospace</family>
		<prefer>
			<family>Kochi Gothic</family>
<!--
  Copy your favorite font from those listed below to the above.

			<family>Kochi Gothic</family>
			<family>MS Gothic</family>
			<family>Mikachan</family>
-->
		</prefer>
	</alias>
</fontconfig>
EOF

fi

exec /opt/gnome/bin/gnome-session.bin
