--no-sandbox: How to prevent this message?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
pp4mnklinux
Posts: 1125
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 632 times
Been thanked: 281 times
Contact:

--no-sandbox: How to prevent this message?

Post 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

User avatar
rockedge
Site Admin
Posts: 6539
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2748 times
Been thanked: 2620 times
Contact:

Re: --no-sandb box. (How to delete this message)

Post 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
Post Reply

Return to “Users”