From 83f3771e37a2bcaf294f4ad2de04b6b603b95e45 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Thu, 11 Mar 2021 14:29:05 +0000 Subject: [PATCH] epiphany-add: Always restart the browser service The browser is meant to be the only UI for the running device. So stopping it would make little sense. epiphany, even in app mode, doesn't hide the window controls - including the window closing button. If that is triggered by mistake, systemd would restart it unconditionally. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .../recipes-gnome/epiphany/epiphany-app/epiphany-app@.service | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-ohos-demo/recipes-gnome/epiphany/epiphany-app/epiphany-app@.service b/meta-ohos-demo/recipes-gnome/epiphany/epiphany-app/epiphany-app@.service index b33253ed..d0835f08 100644 --- a/meta-ohos-demo/recipes-gnome/epiphany/epiphany-app/epiphany-app@.service +++ b/meta-ohos-demo/recipes-gnome/epiphany/epiphany-app/epiphany-app@.service @@ -7,6 +7,7 @@ After=weston@root.service Environment="WAYLAND_DISPLAY=wayland-0" Environment="XDG_RUNTIME_DIR=/run/user/0" ExecStart=/usr/bin/epiphany -a --profile /home/root/.local/share/epiphany-@EPIPHANY_APP@ @EPIPHANY_URL@ +Restart=always [Install] WantedBy=multi-user.target -- GitLab