prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  "Accounts" tab in settings is blank
  ![image](https://github.com/lutris/lutris/assets/1454420/ad64e7a6-b8e2-4080-b031-da99b643279c)
  
  When navigating to the "accounts" tab in the lutris settings (version 0.5.15), it is blank and I get this error. This is on Fedora 39 KDE.
  
  ```
  2024-01-14 08:52:03,865: Error handling signal 'row-selected': 'PersonalName'
  Traceback (most recent call last):
    File "/usr/lib/python3.12/site-packages/lutris/exception_backstops.py", line 79, in error_wrapper
      return handler(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/site-packages/lutris/gui/config/preferences_dialog.py", line 109, in on_sidebar_activated
      generator()
    File "/usr/lib/python3.12/site-packages/lutris/gui/config/accounts_box.py", line 33, in populate_accounts
      account["PersonalName"]
      ~~~~~~~^^^^^^^^^^^^^^^^
  KeyError: 'PersonalName'
  ```
  
  My only guess is that my steam display name has a " / " in it. But I'm not sure.
  
  I have both Steam RPM and Steam flatpak installed.
  
  </issue>
  <code>
  [start of lutris/gui/config/accounts_box.py]
  1 from gettext import gettext as _
  2 
  3 from gi.repository import Gtk
  4 
  5 from lutris import settings
  6 from lutris.gui.config.base_config_box import BaseConfigBox
  7 from lutris.util.steam.config import STEAM_ACCOUNT_SETTING, get_steam_users
  8 
  9 
  10 class AccountsBox(BaseConfigBox):
  11 
  12     def __init__(self):
  13         super().__init__()
  14         self.add(self.get_section_label(_("Steam accounts")))
  15         self.add(self.get_description_label(
  16             _("Select which Steam account is used for Lutris integration and creating Steam shortcuts.")
  17         ))
  18         frame = Gtk.Frame(visible=True, shadow_type=Gtk.ShadowType.ETCHED_IN)
  19         frame.get_style_context().add_class("info-frame")
  20         self.pack_start(frame, False, False, 0)
  21 
  22         self.accounts_box = Gtk.VBox(visible=True)
  23         frame.add(self.accounts_box)
  24 
  25     def populate_accounts(self):
  26         main_radio_button = None
  27         active_steam_account = settings.read_setting(STEAM_ACCOUNT_SETTING)
  28 
  29         steam_users = get_steam_users()
  30         for account in steam_users:
  31             steamid64 = account["steamid64"]
  32             name = account.get("PersonalName") or f"#{steamid64}"
  33             radio_button = Gtk.RadioButton.new_with_label_from_widget(main_radio_button, name)
  34             radio_button.set_margin_top(16)
  35             radio_button.set_margin_start(16)
  36             radio_button.set_margin_bottom(16)
  37             radio_button.show()
  38             radio_button.set_active(active_steam_account == steamid64)
  39             radio_button.connect("toggled", self.on_steam_account_toggled, steamid64)
  40             self.accounts_box.pack_start(radio_button, True, True, 0)
  41             if not main_radio_button:
  42                 main_radio_button = radio_button
  43         if not steam_users:
  44             self.accounts_box.pack_start(Gtk.Label(_("No Steam account found"), visible=True), True, True, 0)
  45 
  46     def on_steam_account_toggled(self, radio_button, steamid64):
  47         """Handler for switching the active Steam account."""
  48         settings.write_setting(STEAM_ACCOUNT_SETTING, steamid64)
  49
  [end of lutris/gui/config/accounts_box.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/lutris/gui/config/accounts_box.py b/lutris/gui/config/accounts_box.py
  --- a/lutris/gui/config/accounts_box.py
  +++ b/lutris/gui/config/accounts_box.py
  @@ -29,7 +29,7 @@
           steam_users = get_steam_users()
           for account in steam_users:
               steamid64 = account["steamid64"]
  -            name = account.get("PersonalName") or f"#{steamid64}"
  +            name = account.get("PersonaName") or f"#{steamid64}"
               radio_button = Gtk.RadioButton.new_with_label_from_widget(main_radio_button, name)
               radio_button.set_margin_top(16)
               radio_button.set_margin_start(16)
  
verification_info: {"golden_diff": "diff --git a/lutris/gui/config/accounts_box.py b/lutris/gui/config/accounts_box.py\n--- a/lutris/gui/config/accounts_box.py\n+++ b/lutris/gui/config/accounts_box.py\n@@ -29,7 +29,7 @@\n         steam_users = get_steam_users()\n         for account in steam_users:\n             steamid64 = account[\"steamid64\"]\n-            name = account.get(\"PersonalName\") or f\"#{steamid64}\"\n+            name = account.get(\"PersonaName\") or f\"#{steamid64}\"\n             radio_button = Gtk.RadioButton.new_with_label_from_widget(main_radio_button, name)\n             radio_button.set_margin_top(16)\n             radio_button.set_margin_start(16)\n", "issue": "\"Accounts\" tab in settings is blank\n![image](https://github.com/lutris/lutris/assets/1454420/ad64e7a6-b8e2-4080-b031-da99b643279c)\r\n\r\nWhen navigating to the \"accounts\" tab in the lutris settings (version 0.5.15), it is blank and I get this error. This is on Fedora 39 KDE.\r\n\r\n```\r\n2024-01-14 08:52:03,865: Error handling signal 'row-selected': 'PersonalName'\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.12/site-packages/lutris/exception_backstops.py\", line 79, in error_wrapper\r\n    return handler(*args, **kwargs)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/site-packages/lutris/gui/config/preferences_dialog.py\", line 109, in on_sidebar_activated\r\n    generator()\r\n  File \"/usr/lib/python3.12/site-packages/lutris/gui/config/accounts_box.py\", line 33, in populate_accounts\r\n    account[\"PersonalName\"]\r\n    ~~~~~~~^^^^^^^^^^^^^^^^\r\nKeyError: 'PersonalName'\r\n```\r\n\r\nMy only guess is that my steam display name has a \" / \" in it. But I'm not sure.\r\n\r\nI have both Steam RPM and Steam flatpak installed.\n", "before_files": [{"content": "from gettext import gettext as _\n\nfrom gi.repository import Gtk\n\nfrom lutris import settings\nfrom lutris.gui.config.base_config_box import BaseConfigBox\nfrom lutris.util.steam.config import STEAM_ACCOUNT_SETTING, get_steam_users\n\n\nclass AccountsBox(BaseConfigBox):\n\n    def __init__(self):\n        super().__init__()\n        self.add(self.get_section_label(_(\"Steam accounts\")))\n        self.add(self.get_description_label(\n            _(\"Select which Steam account is used for Lutris integration and creating Steam shortcuts.\")\n        ))\n        frame = Gtk.Frame(visible=True, shadow_type=Gtk.ShadowType.ETCHED_IN)\n        frame.get_style_context().add_class(\"info-frame\")\n        self.pack_start(frame, False, False, 0)\n\n        self.accounts_box = Gtk.VBox(visible=True)\n        frame.add(self.accounts_box)\n\n    def populate_accounts(self):\n        main_radio_button = None\n        active_steam_account = settings.read_setting(STEAM_ACCOUNT_SETTING)\n\n        steam_users = get_steam_users()\n        for account in steam_users:\n            steamid64 = account[\"steamid64\"]\n            name = account.get(\"PersonalName\") or f\"#{steamid64}\"\n            radio_button = Gtk.RadioButton.new_with_label_from_widget(main_radio_button, name)\n            radio_button.set_margin_top(16)\n            radio_button.set_margin_start(16)\n            radio_button.set_margin_bottom(16)\n            radio_button.show()\n            radio_button.set_active(active_steam_account == steamid64)\n            radio_button.connect(\"toggled\", self.on_steam_account_toggled, steamid64)\n            self.accounts_box.pack_start(radio_button, True, True, 0)\n            if not main_radio_button:\n                main_radio_button = radio_button\n        if not steam_users:\n            self.accounts_box.pack_start(Gtk.Label(_(\"No Steam account found\"), visible=True), True, True, 0)\n\n    def on_steam_account_toggled(self, radio_button, steamid64):\n        \"\"\"Handler for switching the active Steam account.\"\"\"\n        settings.write_setting(STEAM_ACCOUNT_SETTING, steamid64)\n", "path": "lutris/gui/config/accounts_box.py"}]}