#!/bin/bash # # Start beryl-manager within gnome-session # if (( `ps -A -o comm | grep -c '^Xgl$'` == "1" )); then DISPLAY=:1 beryl-manager DISPLAY=:1 beryl-xgl else echo "${0}: Error: beryl-manager not launched. Xgl not running?" fi
保存退出
sudo vi /usr/share/xsessions/xgl.desktop
[Desktop Entry] Encoding=UTF-8 Name=GNOME with XGL Comment= Exec=/usr/local/bin/startxgl.sh Icon= Type=Application
保存退出
sudo vi /etc/xdg/autostart/beryl.desktop
[Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Name[en_US]=Beryl Exec=/usr/local/bin/start_beryl.sh Icon[en_US]=/usr/share/icons/hicolor/scalable/apps/beryl-manager.svg Comment[en_US]=Beryl 3D Manager Name=Beryl Comment=Beryl 3D Manager Icon=/usr/share/icons/hicolor/scalable/apps/beryl-manager.svg