Last active
May 24, 2024 18:16
-
-
Save ouuan/424a5ee87c59aca35e73bd2331be7790 to your computer and use it in GitHub Desktop.
Fix "Firefox is already running" at startup when using profile-sync-daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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