Skip to content

Instantly share code, notes, and snippets.

@ouuan
Last active May 24, 2024 18:16
Show Gist options
  • Select an option

  • Save ouuan/424a5ee87c59aca35e73bd2331be7790 to your computer and use it in GitHub Desktop.

Select an option

Save ouuan/424a5ee87c59aca35e73bd2331be7790 to your computer and use it in GitHub Desktop.
Fix "Firefox is already running" at startup when using profile-sync-daemon
#!/bin/bash
# Fix "Firefox is already running" at startup when using profile-sync-daemon
set -euo pipefail
profile="$(ls -d ~/.mozilla/firefox/*.default-release)"
while [[ "$(readlink -n "$profile")" == /dev/null ]]; do
inotifywait -P "$profile"
done
firefox &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment