20 lines
522 B
Bash
Executable file
20 lines
522 B
Bash
Executable file
#!/bin/bash
|
|
|
|
fly ()
|
|
{
|
|
nohup $@ < /dev/null > /dev/null 2>&1 &
|
|
echo $!
|
|
}
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
PREVIOUS_DIR=$(pwd)
|
|
|
|
cd $DIR
|
|
|
|
#echo $(fly /usr/bin/chromium --incognito --screen=1 $@)
|
|
#/usr/bin/chromium --incognito --screen=1 $@ &
|
|
fly flatpak run com.github.Eloston.UngoogledChromium --screen=1 --disk-cache-dir=/dev/null --disk-cache-size=1 --enable-logging --password-store=basic --v=1 $@ &
|
|
browser_pid=$!
|
|
echo $browser_pid > .browserpid
|
|
|
|
cd $PREVIOUS_DIR
|