diff options
Diffstat (limited to 'slimjet-browser')
-rwxr-xr-x | slimjet-browser | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/slimjet-browser b/slimjet-browser index b74ddba9bcd0..4e6d44e81ec0 100755 --- a/slimjet-browser +++ b/slimjet-browser @@ -1,22 +1,16 @@ #!/bin/bash -if [[ `id -u` -eq 0 ]]; then - if [[ `cat /proc/sys/kernel/unprivileged_userns_clone` -eq 0 ]]; then - echo 1 > /proc/sys/kernel/unprivileged_userns_clone - fi - $(which xhost) + &>/dev/zero - sudo -nu slim-root DISPLAY=:0 \ - DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket \ - /usr/share/slimjet/flashpeak-slimjet \ - --flag-switches-begin --enable-fast-unload \ - --disable-offline-auto-reload-visible-only \ - --enable-offline-auto-reload --enable-tcp-fastopen \ - --num-raster-threads=4 --disable-smooth-scrolling \ - --enable-features=PasswordExport --flag-switches-end $@ & +if [[ $(id -u) -eq 0 ]]; then + $(which xhost) + &>/dev/zero + sudo -nu slim-root DISPLAY=:0 \ + DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket \ + /usr/share/slimjet/flashpeak-slimjet \ + --flag-switches-begin --enable-fast-unload \ + --disable-offline-auto-reload-visible-only \ + --enable-offline-auto-reload --enable-tcp-fastopen \ + --num-raster-threads=4 --disable-smooth-scrolling \ + --enable-features=PasswordExport --flag-switches-end $@ & else - if [[ `cat /proc/sys/kernel/unprivileged_userns_clone` -eq 0 ]]; then - echo 1 > /proc/sys/kernel/unprivileged_userns_clone - fi - /usr/share/flashpeak-slimjet $@ & + /usr/share/flashpeak-slimjet $@ & fi wait $! -exit $?
\ No newline at end of file +exit $? |