variabletime/browser.sh

24 lines
667 B
Bash
Raw Permalink 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)
#. ~/.bash_aliases
2024-03-16 09:57:27 +01:00
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 $@ &
#flatchrome Tmp --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