BenWestgate / Bails

Bails is a Bitcoin solution protecting against surveillance, censorship, and confiscation. It installs Bitcoin Core on the encrypted Persistent Storage of Tails, creates and recovers Bitcoin Core wallets from Codex32 (BIP93) seed backups, and creates backup Bails USB sticks and shareable blank Bails USB sticks. Learn more in README.md.
MIT License
38 stars 7 forks source link

Fine tune environment variables #129

Closed BenWestgate closed 1 month ago

BenWestgate commented 1 month ago

I nested all the .local folders into a .local folder in this repo, and adjusted the scripts. It allowed me to save a couple lines of code and I think it's neater looking.

Environment variables were added to fix the default location of the .config/Bitcoin/Bitcoin-Qt.conf and .config/autostart/bitcoin.desktop and .cache/iconcache/* files that Bitcoin-Qt creates so they're created in the $DOTFILES so they persist restarts.

Otherwise, they'd be created in the $HOME/Persistent location because in order to change the default datadir on the Welcome to Bitcoin Core -choosedatadir dialog. I temporary change $HOME, and the XDG_CACHE_HOME and XDG_CONFIG_HOME are by default relative to $HOME.

Lastly, better secured the temporary files created in install-core by using a directory only readable to the user: XDG_RUNTIME_DIR

And I squashed the bug that was spamming the lock screen with notifications from spaced repetition by increasing the timeout to 27 hours.

github-actions[bot] commented 1 month ago

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files