Ubuntu touchegg赢得';t使用/etc/rc.local启动时启动

Ubuntu touchegg赢得';t使用/etc/rc.local启动时启动,ubuntu,startup,nohup,Ubuntu,Startup,Nohup,我可以通过sh/etc/rc.local成功运行touchegg,但它不会在启动时自动启动 my rc.local的内容: #!/bin/sh -e exec 2> /tmp/rc.local.log nohup touchegg & exit 0 rc.local启动日志: nohup: appending output to 'nohup.out' touchegg: cannot connect to X server 我正在运行Ubuntu14.04.2我忘记了这篇文章

我可以通过
sh/etc/rc.local
成功运行touchegg,但它不会在启动时自动启动

my rc.local的内容:

#!/bin/sh -e
exec 2> /tmp/rc.local.log
nohup touchegg &
exit 0
rc.local启动日志:

nohup: appending output to 'nohup.out'
touchegg: cannot connect to X server

我正在运行Ubuntu14.04.2

我忘记了这篇文章,但我找到了解决方案,我只需要等lubuntu初始化X服务器一段时间。我刚在开头添加了睡眠。

它正在尝试启动,但无法连接到X窗口。它在跑吗?它允许连接吗?