从新贵启动浏览器

时间:2018-08-29 15:29:36

标签: firefox service ubuntu-14.04 upstart

我正在尝试在系统启动时启动具有默认URL的浏览器。我编写了fox.conf文件并将其放在/ etc / init目录下。 .conf文件如下所示:

start on desktop-start
stop on desktop-end

exec firefox /home/path/to/index.html

然后我使用sudo service fox start启动服务,并得到结果

fox start/running, process 6503

但是,启动服务后,firefox无法打开。有人可以指出我在哪里错了吗?

P.S:我正在使用Ubuntu 14.04

附加输出:uname -a

Linux user_name 4.4.0-83-generic #106~14.04.1-Ubuntu SMP Mon Jun 26 18:10:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

0 个答案:

没有答案
相关问题