variabletime/browser.sh

21 lines
522 B
Bash
Raw Normal View History

2023-09-24 18:39:52 +02:00
#!/bin/bash
fly ()
{
nohup $@ < /dev/null > /dev/null 2>&1 &
echo $!
}
2024-03-16 09:57:27 +01:00
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PREVIOUS_DIR=$(pwd)
cd $DIR
2023-09-24 18:39:52 +02:00
#echo $(fly /usr/bin/chromium --incognito --screen=1 $@)
#/usr/bin/chromium --incognito --screen=1 $@ &
2024-02-29 16:32:49 +01:00
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 $@ &
2024-03-16 09:57:27 +01:00
browser_pid=$!
echo $browser_pid > .browserpid
cd $PREVIOUS_DIR