Skip to content

Icon not recognized on Arch Linux #7

@filmmakerto

Description

@filmmakerto

Hi Greg,

thanks a lot for providing this tool. I successfully got it to run under Arch Linux, but I had to make some modifications:

First of all, there is an additional dependency that you don't mention in your readme, and that's the package tk, which doesn't automatically come with Python in Arch since it's only marked as an optional dependency of python.
Not your fault of course, just thought this might be helpful to know for other Linux users.

Secondly, there is some issue with the icons - when attempting to run hdr_brackets.py, I get the following error:

  File "hdr_brackets.py", line 354, in <module>
    main()    
  File "hdr_brackets.py", line 348, in main
    root.iconbitmap(str(SCRIPT_DIR / "icons/icon.ico"))
  File "/usr/lib/python3.8/tkinter/__init__.py", line 2071, in wm_iconbitmap
    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "/home/to/bin/HDR-Merge/icons/icon.ico" not defined

First I thought this was because tkinter only supports .xbm icons in Linux, so I converted the icon to xbm and changed line 348 in hdr_brackets.py to:
root.iconbitmap(str(SCRIPT_DIR / "icons/icon.xbm"))

But the result was the same. I can only run the script if I comment out line 348.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions