Skip to content

Commit

Permalink
fsl-image-gui-chromium: launch Chromium as non-root user to avoid war…
Browse files Browse the repository at this point in the history
…ning

Signed-off-by: Marco Contenti <marco.c@variscite.com>
  • Loading branch information
Marco Contenti committed May 10, 2023
1 parent 209bfee commit dc74981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-fsl/images/fsl-image-gui-chromium.bb
Expand Up @@ -9,5 +9,5 @@ IMAGE_INSTALL:append = "chromium-ozone-wayland"
ROOTFS_POSTPROCESS_COMMAND:append = "install_chromium; "

install_chromium() {
printf "\n[launcher]\nicon=/usr/share/icons/hicolor/24x24/apps/chromium.png\npath=/usr/bin/chromium --no-sandbox" >> ${IMAGE_ROOTFS}${sysconfdir}/xdg/weston/weston.ini
printf "\n[launcher]\nicon=/usr/share/icons/hicolor/24x24/apps/chromium.png\npath=/usr/sbin/runuser -l weston -c chromium" >> ${IMAGE_ROOTFS}${sysconfdir}/xdg/weston/weston.ini
}

0 comments on commit dc74981

Please sign in to comment.