diff --git a/cbz/cbz.png b/cbz/cbz.png new file mode 100644 index 0000000..5f9bcae Binary files /dev/null and b/cbz/cbz.png differ diff --git a/cbz/player.py b/cbz/player.py index dbf4bff..fad1e9c 100644 --- a/cbz/player.py +++ b/cbz/player.py @@ -10,6 +10,7 @@ from pathlib import Path from cbz.comic import ComicInfo from cbz.page import PageInfo from cbz.utils import readable_size +import os class Player: @@ -52,8 +53,13 @@ class Player: # Set initial window size self.root.geometry(self._get_initial_geometry()) - # Set window icon - self.root.iconbitmap(Path(__file__).parent / 'cbz.ico') + # Check if windows or linux + if os.name == 'nt': + # Set window icon + self.root.iconbitmap(Path(__file__).parent / 'cbz.ico') + else: + # Set window icon + self.root.wm_iconphoto(True, tk.PhotoImage(file=Path(__file__).parent / 'cbz.png')) # Create main frame for content self.main_frame = ttk.Frame(self.root)