diff --git a/README.md b/README.md index 9d862d5..a23a70a 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,17 @@ pacman -S python-steam You need a free Steam Web API key to fetch your library. -1. Go to [steamcommunity.com/dev/apikey](https://steamcommunity.com/dev/apikey) and log in. -2. Enter any domain name (e.g. `localhost`) and click **Register**. -3. Copy the 32-character key shown on the page. +1. Go to [steamcommunity.com/dev/apikey](https://steamcommunity.com/dev/apikey) and log in with your Steam account. +2. In the **Domain Name** field, type any string and click **Register**. +3. Copy the 32-character key shown on the next page — paste it into Steam Dice's settings dialog. + +> **Don't have a domain?** You don't need one. Steam's "Domain Name" field is **not validated** — `localhost`, your name, `personal`, or any other text works. It's just a label Steam stores alongside your key; it doesn't have to be a real domain you own. + +If the page refuses to issue a key, the usual causes are: + +- Your Steam account has spent **less than $5** lifetime on Steam (Valve's anti-spam threshold for API access). +- Your account is **limited** (new account with no purchases) or has an unverified email. +- You're signed into the wrong Steam account in your browser. ### 2. Steam ID (64-bit) diff --git a/steam_dice.py b/steam_dice.py index 2d50ef1..27b77fc 100755 --- a/steam_dice.py +++ b/steam_dice.py @@ -965,12 +965,20 @@ class SettingsDialog(QDialog): key_help = QLabel( 'Get your free key at ' - 'steamcommunity.com/dev/apikey.' - '
Log in with Steam, enter any domain name (e.g. localhost), and copy the key shown.' + 'steamcommunity.com/dev/apikey. ' + 'Log in with Steam, then copy the 32-character key shown after registering.' + '

' + 'Don\'t have a domain? You don\'t need one. The Domain Name field ' + 'on Steam\'s page is not validated — type literally anything ' + '(localhost, your name, personal) and click Register.' ) key_help.setOpenExternalLinks(True) key_help.setWordWrap(True) - key_help.setStyleSheet("color: #8f98a0; font-size: 9pt; padding-bottom: 10px;") + key_help.setStyleSheet( + "color: #c7d5e0; font-size: 9pt; " + "background-color: #1f2a36; border: 1px solid #2a475e; border-radius: 4px; " + "padding: 8px 10px; margin-bottom: 10px;" + ) layout.addWidget(key_help) # --- Steam ID ---