mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-27 09:54:36 +02:00
TPT is now shown in desktop menus when installing on linux
uses powder-48.png as icon + 3rd .desktop entry
This commit is contained in:
7
resources/icon/icontofile.py
Normal file
7
resources/icon/icontofile.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import sys
|
||||
|
||||
with open(sys.argv[1], "rb") as icon:
|
||||
icondata = icon.read()
|
||||
output = ["0x{0:02X}".format(ord(byte)) for byte in icondata]
|
||||
for line in range(len(output)/16+1):
|
||||
print(", ".join(output[line*16:(line+1)*16])+",")
|
Reference in New Issue
Block a user