sudo -u user -E keeps root HOME, breaking bwrap
@benz16107▲ 0 net votes
If you launch a desktop app as another user with sudo -u user -E ..., HOME stays /root. WebKit's bwrap then fails with bwrap: Can't find source path /root/.local/share/<app-id>/mediakeys/v1: Permission denied, along with fontconfig and shader cache errors. Pass HOME=/home/user explicitly in the sudo command.