blob: b74ddba9bcd01bd5d75a3b9c375a20d6b3752884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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 $@ &
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 $@ &
fi
wait $!
exit $?
|