初めに
wayland を気軽に動かしてみたかったので、ubuntu 上で動かしてみた。のメモ。
環境
Ubuntu 14.04
環境構築
https://wayland.freedesktop.org/ubuntu12.04.html
の中をコピって適当なファイル名で shell 化( build.sh 等)。
shell 実行。数十分待つ。
$ ./build.sh
apt-get で weston をインストール&実行。
$ sudo apt-get install weston
$ weston
上記 Weston Compositor ウインドウが表示される。
サンプルアプリ
https://hdante.wordpress.com/2014/07/08/the-hello-wayland-tutorial/
このサンプルソースを借用。
https://github.com/hdante/hello_wayland
git clone か zip ダウンロードか、適当にローカルへ。
$ cd hello_wayland-master
$ make
$ ./hello_wayland
サンプルアプリの絵が表示される。
その他メモ
もしかしたら、 https://wayland.freedesktop.org/ubuntu12.04.html
の作業一式不要かも。
結果作成される weston.ini だけあればよかったかもしれない。
逆に、単に https://wayland.freedesktop.org/ubuntu12.04.html
のコマンドを打たずに、
$ sudo apt-get install weston
$ weston
するだけでは weston compositor は起動してくれない。
sudo apt-get install weston
では weston.ini は作られない。
作られる weston.ini はこちら。
$ cat ~/.config/weston.ini
[core]
# modules=desktop-shell.so,xwayland.so
[shell]
background-image=/usr/share/backgrounds/gnome/Aqua.jpg
background-color=0xff002244
panel-color=0x90ff0000
locking=true
animation=zoom
# binding-modifier=ctrl
# num-workspaces=6
# lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
# lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
# homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
# animation=fade
[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/gnome-terminal
[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/weston-terminal
[launcher]
icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
path=/usr/bin/google-chrome
[launcher]
icon=/usr/share/icons/gnome/24x24/apps/arts.png
path=./clients/flower
[screensaver]
# Uncomment path to disable screensaver
path=/usr/libexec/weston-screensaver
duration=600
[input-method]
path=/usr/libexec/weston-keyboard
# [output]
# name=LVDS1
# mode=1680x1050
# transform=90
# [output]
# name=VGA1
# modeline=173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
# transform=flipped
# [output]
# name=X1
# mode=1024x768
# transform=flipped-270
感想
Weston Compositor の左上に chrome アイコンがあるので
クリックして実行してみたが、ホストの ubuntu 側で起動した。
これは chrome は wayland で作られていないためでしょうか。
なぜ chrome をサンプルにしてアイコン載せたんでしょう。。
その他参考