Brave Browser - You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer

System:
  Kernel: 5.17.0-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: GNOME v: 41.4
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82B5 v: Lenovo Legion 5 15ARH05
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40688 WIN serial: <superuser required>
    UEFI-[Legacy]: LENOVO v: EUCN19WW date: 05/12/2020
Battery:
  ID-1: BAT0 charge: 30.2 Wh (62.9%) condition: 48.0/60.0 Wh (80.0%) volts: 15.4 min: 15.4
    model: Celxpert L19C4PC0 status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 2
    rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB
  Speed (MHz): avg: 1407 high: 1788 min/max: 1400/2900 boost: enabled cores: 1: 1415 2: 1394
    3: 1396 4: 1395 5: 1309 6: 1366 7: 1397 8: 1329 9: 1383 10: 1397 11: 1397 12: 1396 13: 1427
    14: 1788 15: 1335 16: 1397 bogomips: 92662
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Lenovo driver: nvidia v: 470.103.01
    bus-ID: 01:00.0
  Device-2: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel bus-ID: 05:00.0
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 1-3:2
  Display: x11 server: X.org v: 1.21.1.3 driver: X: loaded: amdgpu,nvidia gpu: amdgpu
    resolution: 1920x1080~120Hz
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: NVIDIA driver: snd_hda_intel v: kernel bus-ID: 01:00.1
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A bus-ID: 05:00.5
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 05:00.6
  Sound Server-1: ALSA v: k5.17.0-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169
    v: kernel port: 2000 bus-ID: 03:00.0
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 04:00.0
  IF: wlp4s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-3:3
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 226.98 GiB (47.6%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HBJQ-000L2 size: 476.94 GiB temp: 41.9 C
Partition:
  ID-1: / size: 459.79 GiB used: 226.98 GiB (49.4%) fs: ext4 dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p2
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 41.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 394 Uptime: 43m Memory: 15.07 GiB used: 4.2 GiB (27.9%) Init: systemd Compilers:
  gcc: 11.2.0 clang: 13.0.1 Packages: 1518 Client: gnome-shell v: 41.4 inxi: 3.3.14

When I open Brave it shows an error: You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer. I installed it from the official repo.

Indeed: brave.sh · master · Packages / Community / brave · GitLab
This seems to be put when using a kernel with lacking user privileges or something…

@Ste74 Can you explain better ?
Also, since Manjaro builds its own kernels, can we do something about that?

Modified the script now… i don’t use brave and simply leave what Helmut pushed in our repository :sweat:

1 Like

This line must be:

exec /usr/lib/brave-browser/brave "$@" $USER_FLAGS