xdotool を使用してブラウザで単純なキー押下をシミュレートするのに問題があります。
これで、「/home/pi/.xintirc」に次のコードを追加することで、ブラウザが起動時に起動します
#!/bin/sh
xset -dpms
xset s off
xset s noblank
// not sure if this is needed.
killall -TERM matchbox-window-manager 2>/dev/null;
killall -9 matchbox-window-manager 2>/dev/null;
exec matchbox-window-manager -use_titlebar no &
iceweasel [someURL]
python /etc/xdo_test.py
/etc/xdo_test.py は次のようになります。
import time
import subprocess
time.sleep(20)
subprocess.call(["xdotool", "key", "c"]);
起動時にこのファイルを使用している間、このファイルの出力はありませんが、別のコンソールでこれを実行すると、次の出力が得られます。
Error: Can't open display: (null)
Failed creating new xdo instance
このエラーが発生する理由と解決方法を知っている人はいますか?