Skip to content

Setting window icons crashes on Linux #1

@tkroening

Description

@tkroening

Describe the bug
The app crashes when trying to initialize new windows (e.g. the "My Profile" view) with the following error:

  File "CounterForMessenger/Main.py", line 510, in __init__
    self.iconbitmap('assets/CFM.ico')
  File "/usr/lib/python3.11/tkinter/__init__.py", line 2155, in wm_iconbitmap
    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: bitmap "assets/CFM.ico" not defined

To Reproduce
Steps to reproduce the behavior:

  1. Open the app on Linux
  2. The app will crash because it can't set window icons

Expected behavior
The app should open normally and set the window icon without crashing.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Debian 13 (Trixie)
  • Version of app: 0.1.7

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions