Page 1 of 1
--no-sandbox: How to prevent this message?
Posted: Thu Apr 13, 2023 3:08 pm
by pp4mnklinux
Hello everybody:
Time with this "problem"
It happens to me in OPERA, SLIMJET... browsers in portable versions (@mikewalsh ).
It's and inconvenient (only visual, haha) and I want to know if there is any way to prevent this message to appears
Thanks a lot for your help.
CHEERS
Re: --no-sandb box. (How to delete this message)
Posted: Thu Apr 13, 2023 4:31 pm
by rockedge
@pp4mnklinux
This modified LAUNCH I add to the Opera portable I call AppRun in which the --test-type
flag is included. This will remove the run as root warning but seems to effect the Speed Dial on a new tab/page. If both LAUNCH
and AppRun
(the same code) exist then the portable directory will be seen as an appliance by Rox.
The --test-type
flag works on all Chromium based browsers as well. Like Chrome and Edge.
AppRun / LAUNCH
Code: Select all
#!/bin/sh
#
# Launcher for 'portable' Opera browser
#
export HERE="$(dirname "$(readlink -f "$0")")"
#
tee "$HERE"/opera/resources/ffmpeg_preload_config.json >/dev/null <<EOF
[
"${HERE}/opera/lib_extra/libffmpeg.so"
]
EOF
#
mkdir /opt/google
mkdir /opt/google/chrome
#
ln -s $HERE/opera/WidevineCdm /opt/google/chrome/WidevineCdm
#
if grep -q 'puppy_tahr64' /etc/os-release
then
LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox --test-type "$@"
elif grep -q 'puppy_xenialpup64' /etc/os-release
then
LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox --test-type "$@"
else
"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox --test-type "$@"
fi
#
rm -rf /opt/google