遇到过同样的问题。这是我的发现:
检查/home/pi/.config/lxsession/LXDE-pi/autostart
文件是否存在。如果存在,它将代替/etc/xdg/lxsession/LXDE-pi/autostart
。
查看日志(重启后)/home/pi/.xsession-errors
:
$ cat .xsession-errors
Xsession: X session started for pi at Sat 30 Jul 23:14:04 UTC 2016
localuser:pi being added to access control list
** Message: main.vala:99: Session is LXDE-pi
** Message: main.vala:100: DE is LXDE
** Message: main.vala:131: log directory: /home/pi/.cache/lxsession/LXDE-pi
** Message: main.vala:132: log path: /home/pi/.cache/lxsession/LXDE-pi/run.log
这建议看/home/pi/.cache/lxsession/LXDE-pi/run.log
:
$ tail -n30 /home/pi/.cache/lxsession/LXDE-pi/run.log
...
** (epiphany-browser:874): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
--profile must be an existing directory when --application-mode is requested
** Message: app.vala:130: /usr/bin/epiphany-browser exit with this type of exit: 256
...
因此,我在终端(在GUI中)中手动测试了该命令。我有一些错误:
$ /usr/bin/epiphany-browser -a --profile ~/.config https~://google.de
** (epiphany-browser:1218): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
** Message: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
** (epiphany-browser:1218): WARNING **: Error caching form data: The name org.freedesktop.secrets was not provided by any .service files
但是浏览器还是启动了...
播放/usr/bin/epiphany-browser
命令并将其缩减为/usr/bin/epiphany-browser --profile ~/.config https://google.de
。
然后将/home/pi/.config/lxsession/LXDE-pi/autostart
行更改为:
@/usr/bin/epiphany-browser --profile ~/.config https://google.de
并且有效-浏览器启动。
经过测试: