我尝试测试 openbox 自动启动脚本。因此,我首先将全局自动启动复制到我的用户目录,然后设置/检查所有者和权限:
$ sudo cp /etc/xdg/openbox/autostart /home/ubuntu/.config/openbox/autostart
$ ls -la /home/ubuntu/.config/openbox/
-rwxr-xr-x 1 ubuntu ubuntu 545 Nov 4 22:15 autostart
下一步我编辑并覆盖了自动启动文件:
#
# These things are run when an Openbox X Session is started.
# You may place a similar script in $HOME/.config/openbox/autostart
# to run user-specific things.
#
# If you want to use GNOME config tools...
#
#if test -x /usr/lib/i386-linux-gnu/gnome-settings-daemon >/dev/null; then
# /usr/lib/i386-linux-gnu/gnome-settings-daemon &
#elif which gnome-settings-daemon >/dev/null 2>&1; then
# gnome-settings-daemon &
#fi
# If you want to use XFCE config tools...
#
#xfce-mcs-manager &
(sleep 10s && lxterminal) &
运行后,openbox --reconfigure
我尝试注销或重新启动,但lxterminal
登录后没有任何反应。有什么建议吗?