#!/bin/bash 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 /usr/share/slimjet/flashpeak-slimjet $@ & fi wait $! exit $?