Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions build/trivalent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ PROCESSES=$(ps aux)
echo $PROCESSES | grep "$CHROMIUM_NAME --type=zygote" | grep -v "grep" > /dev/null
IS_TRIVALENT_RUNNING=$?

# Fix SingletonLock if the browser isn't running and the file is present
if [[ $IS_TRIVALENT_RUNNING -ne 0 && -f "$HOME/.config/$CHROMIUM_NAME/SingletonLock" ]]; then
# Fix Singleton process locking if the browser isn't running and the singleton files are present
if [[ $IS_TRIVALENT_RUNNING -ne 0 ]] && [[ -f "$HOME/.config/$CHROMIUM_NAME/SingletonLock" ||
-f "$HOME/.config/$CHROMIUM_NAME/SingletonCookie" || -f "$HOME/.config/$CHROMIUM_NAME/SingletonSocket" ]]; then
echo "Ruh roh! This shouldn't be here..."
rm "$HOME/.config/$CHROMIUM_NAME/Singleton"*
else
echo "A process is already open in this directory or SingletonLock is not present."
echo "A process is already open in this directory or Singleton process files are not present."
fi

# Sanitize std{in,out,err} because they'll be shared with untrusted child
Expand Down