Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib4bin
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ WRAPPE_CLEANUP=${WRAPPE_CLEANUP:=1}
MAX_INTERP_LEN=${MAX_INTERP_LEN:=256}
PATCH_INTERPRETER=${PATCH_INTERPRETER:=0}

export USER="${LOGNAME:-${USER:-${USERNAME:-yomama}}}"
export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/tmp}"
export $(dbus-launch 2>/dev/null || echo 'NO_DBUS=1')
if [[ "$EUID" = 0 ]]
then
export ELECTRON_DISABLE_SANDBOX=1
export WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1
export QTWEBENGINE_DISABLE_SANDBOX=1
fi

XDG_OPEN_WRAPPER='#!/bin/sh
# xdg-open and gio-launch-desktop wrapper for sharun
# unsets env variables that cause issues to child processes
Expand Down