長南です。
桝田さんのご希望にほぼ添うものが出来たようです。
こんなところでいかがでしょうか。もっとも、XML を使うのは
初めてですので(HTML もよく知らない)、詳しい方から見ると、
失笑ものかもしれません。
/usr/share/gdm/themes/happygnome/happygnome.xml を元にして
作りました。書き換えたのは、以下の部分です(diff -u の結果)。
**** ここから ****
--- happygnome.xml.org 2008-03-03 22:58:52.000000000 +0900
+++ happygnome.xml 2008-03-03 22:59:28.000000000 +0900
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE greeter SYSTEM "greeter.dtd">
+<!DOCTYPE greeter SYSTEM "greeter.dtd" [
+<!ENTITY s-msg SYSTEM "http://localhost/s-msg.txt">
+]>
<greeter>
- <item type="svg">
- <normal file="background.svg"/>
- <pos x="0" y="0" width="100%" height="-75"/>
+ <item type="pixmap">
+ <normal file="paradise.jpg"/>
+ <pos x="0" y="0" width="100%" height="100%"/>
</item>
<item type="rect">
<normal color="#000000"/>
@@ -142,6 +144,16 @@
</item>
</fixed>
</item>
+ <item type="rect" id="sys-message">
+ <normal color="#eeeeee"/>
+ <pos x="25%" y="75%" width="50%" height="10%"/>
+ <box orientation="horizontal" spacing="10" xpadding="10" ypadding="10">
+ <item type="label" id="today-message">
+ <normal color="#000000" font="Sans 14"/>
+ <text>&s-msg;</text>
+ </item>
+ </box>
+ </item>
</greeter>
**** ここまで ****
同一ディレクトリ(/usr/share/gdm/themes/happygnome)に paradise.jpg
を用意しました。それから、/var/www/html/ に s-msg.txt を作り、
UTF-8 で適当なメッセージを書きました。そのほか、GdmGreeterTheme.desktop
をちょっと書き換えたり、screenshot.png を作りなおしたりも
しましたけれど。
メッセージを別ファイルにする方法がわからず、調べるのに時間が
かかりましたし、それを URI で指定できるのかどうかも自信が
なかったのですが、やってみたら、できてしまいました。こんなに
簡単にできてしまっていいんだろうか、という気持ちです。
もっとも、localhost でしか試していません。メッセージのファイルが
リモートにあるときでも、これでうまく行くのでしょうか。
--
長南洋一