Skip to content

Commit

Permalink
menu: fix Update Bails option
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWestgate committed Jun 19, 2024
1 parent abb8a2a commit 3a774ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bails/.local/bin/bails-menu
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
# Set environment variables
export WAYLAND_DISPLAY=""
export DOTFILES="/live/persistence/TailsData_unlocked/dotfiles"
export LOCAL_DIR="$DOTFILES/.local/"
export DATA_DIR="/live/persistence/TailsData_unlocked/Persistent/.bitcoin"
XDG_DATA_HOME="$DOTFILES/.local/share"


onlynet_onion() {
Expand All @@ -57,7 +57,7 @@ Bitcoin Core will continue to connect to both clearnet and Tor (onion) peers.' -
}

# Display menu and get user response
response=$(zenity --question --window-icon="$LOCAL_DIR/share/icons/bails128.png" \
response=$(zenity --question --window-icon="$XDG_DATA_HOME/icons/bails128.png" \
--icon-name="bails128" --title="Bails menu" \
--text="Wallet - Create a new seed backup or recover an existing seed.
Expand All @@ -75,7 +75,7 @@ case "$response" in
"Wallet") bails-wallet ;;
"Clone") bails-clone ;;
"Backup") bails-backup ;;
"Settings") response2=$(zenity --window-icon="$LOCAL_DIR/share/icons/bails128.png" --question \
"Settings") response2=$(zenity --window-icon="$XDG_DATA_HOME/icons/bails128.png" --question \
--icon-name=org.gnome.Settings --title=Settings --text="Configure Bitcoin Core on Tails\n\nWarning: Only install or update software retaining a good reputation." \
--extra-button="Update Bitcoin Core" --extra-button="Update Bails" --extra-button="$action Sparrow" --extra-button="Network Privacy" \
--switch) ;;
Expand All @@ -89,14 +89,14 @@ esac
case "$response2" in
"Donate") xdg-open bitcoin: ;; # FIXME: change address
"Report a Bug") tor-browser https://github.com/BenWestgate/Bails/issues ;;
"About") zenity --info --window-icon="$LOCAL_DIR/share/icons/bails128.png" \
--title="About Bails" --icon-name=bails128 --text="$($LOCAL_DIR/share/bails/b --version)\n\nCopyright © 2024 Ben Westgate\n\nPlease contribute if you find Bails useful. Visit <a href='https://twitter.com/BenWestgate_'>https://twitter.com/BenWestgate_</a> for further information about the software.\nThe source code is available from <a href='https://github.com/BenWestgate/Bails'>https://github.com/BenWestgate/Bails</a>.\n\nThis is experimental software.\nDistributed under the MIT software license, see the accompanying file COPYING or <a href='https://opensource.org/licenses/MIT'>https://opensource.org/licenses/MIT</a>"; bails-menu ;;
"About") zenity --info --window-icon="$XDG_DATA_HOME/icons/bails128.png" \
--title="About Bails" --icon-name=bails128 --text="$($XDG_DATA_HOME/bails/b --version)\n\nCopyright © 2024 Ben Westgate\n\nPlease contribute if you find Bails useful. Visit <a href='https://twitter.com/BenWestgate_'>https://twitter.com/BenWestgate_</a> for further information about the software.\nThe source code is available from <a href='https://github.com/BenWestgate/Bails'>https://github.com/BenWestgate/Bails</a>.\n\nThis is experimental software.\nDistributed under the MIT software license, see the accompanying file COPYING or <a href='https://opensource.org/licenses/MIT'>https://opensource.org/licenses/MIT</a>"; bails-menu ;;
"Online Help") xdg-open https://bitcoin-core-on-tails.slack.com/ && \
xdg-open https://t.me/bails_support ;;
"Update Bitcoin Core") gnome-terminal --title="Updating Bitcoin Core..." --hide-menubar \
-- "install-core" ;;
"Update Bails") gnome-terminal --title="Updating Bails..." --hide-menubar \
-- "git clone https://github.com/benwestgate/bails --depth=1 && bails/b --update" ;;
-- /bin/bash -c "git clone https://github.com/benwestgate/bails --depth=1 && bails/b --update" ;;
"$action Sparrow") gnome-terminal --title="$action Sparrow Wallet" --hide-menubar \
-- "install-sparrow" ;;
"Network Privacy") onlynet_onion; bails-menu ;;
Expand Down

0 comments on commit 3a774ad

Please sign in to comment.