ehooks() { # add --temp-profile exeinto "/usr/$(get_libdir)/chromium-browser" ozone_auto_session () { use wayland && ! use headless && echo true || echo false } local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g; s:@@OZONE_AUTO_SESSION@@:$(ozone_auto_session):g" ) sed "${sedargs[@]}" "${EHOOKS_FILESDIR}/chromium-launcher-r7-with-temp.sh" > chromium-launcher.sh || die doexe chromium-launcher.sh domenu "${EHOOKS_FILESDIR}/chromium-browser-chromium.desktop" }