Hearthbook 0.8.2
A little social network inside World of Warcraft: Forever.

INSTALL
1. Unzip this folder somewhere you'll keep it, for example ~/Hearthbook.
2. Open a terminal in that folder and run:   ./hearthbook-companion
   (If it says "Permission denied", run   chmod +x hearthbook-companion   first.)
3. Hearthbook's setup window opens. It looks for World of Warcraft in the usual
   Wine, Lutris, Steam (Proton) and Bottles places; if it can't find it, click
   Browse and choose your _forever_ folder, for example:
     ~/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_forever_
   Leave "Start when you log in" on: it stays in the background and does nothing
   until WoW is running. Click Install. You can close the terminal now.
4. Restart World of Warcraft once, then type /hb in game.

Hearthbook's icon sits in the system tray: click it to see how it's doing,
right-click it to quit. It's in your app menu too.
(GNOME shows tray icons only with the "AppIndicator" extension.)
The windows need Python 3 with GTK 4, which desktop Linux comes with (if not:
Fedora: sudo dnf install python3-gobject gtk4; Debian/Ubuntu: sudo apt install
python3-gi gir1.2-gtk-4.0). Without them it asks its questions in the terminal.

UPDATE
Hearthbook updates itself: when a new version is out, it downloads it (checking
it's a genuine Hearthbook release), installs it in this folder and restarts. In
game a popup then asks you to type /reload. Everyone has to use the same
version, so Hearthbook doesn't work until it's updated.
If it can't update itself (it says so in game), download the newest version from
  https://api.autothots.com/download/linux
unzip it (over the old folder is fine) and run its ./hearthbook-companion.
Running it again any time simply restarts it.

THE ADDON
The program carries the addon and installs it for you: the Hearthbook folder,
plus helper folders Hearthbook_Inbox01 to Hearthbook_Inbox60 that let new posts
show up without a /reload (leave them enabled). For a clean reinstall, close
World of Warcraft, delete the Hearthbook folders in your WoW
_forever_/Interface/AddOns folder, and run ./hearthbook-companion again.

IF SOMETHING'S WRONG
- In game, /hb sync fetches the newest posts and messages, and shows whether the
  program is running and connected.
- The program's log is at ~/.local/share/hearthbook/companion.log
- New posts only show after a /reload? Restart WoW once. (Hearthbook says so in
  chat when its helper folders were missing; the program puts them back.)
- Your posts reach others a few seconds after you post. A small barcode flashes in
  the top-left corner when that happens; that's normal.
- Still stuck? Tell us: "Report a problem" on Hearthbook's Notifications page in
  game (or /hb report), or in the menu of Hearthbook's tray icon. Write a few words;
  Hearthbook's logs from this PC go with it (not your posts or messages).

IDEAS
Something you'd like Hearthbook to do? "Suggest an idea" sits next to "Report a
problem" (or type /hb suggest in game). Only what you write is sent.

CLOCK
Hearthbook needs your computer's clock to be right to connect securely. If it says
your clock is wrong, turn on network time:   sudo timedatectl set-ntp true
(Dual boot with Windows? Fix Windows' side once, so the clock stops jumping: in an
administrator Command Prompt on Windows run
  reg add "HKLM\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /t REG_DWORD /d 1 /f )

OPTIONS
  ./hearthbook-companion --setup            ask the setup questions again
  ./hearthbook-companion --autostart off    don't start with your desktop session
  ./hearthbook-companion --stop             stop the copy running in the background
  ./hearthbook-companion --wow="/path/to/_forever_"   if it can't find WoW

UNINSTALL
1. ./hearthbook-companion --autostart off, then ./hearthbook-companion --stop
2. Delete this folder, ~/.local/share/hearthbook, ~/.local/share/applications/hearthbook.desktop
   and ~/.local/share/icons/hicolor/*/apps/hearthbook.png
3. In your WoW _forever_/Interface/AddOns folder, delete Hearthbook and
   Hearthbook_Inbox01 to Hearthbook_Inbox60
