HDR-Merge icon indicating copy to clipboard operation
HDR-Merge copied to clipboard

Icon not recognized on Arch Linux

Open filmmakerto opened this issue 6 years ago • 0 comments

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.

filmmakerto avatar Apr 19 '20 14:04 filmmakerto