linux: install a scalable icon

This commit is contained in:
Artturin 2021-07-13 05:10:15 +03:00
parent 368bc91eed
commit 6f513f5706

View File

@ -912,6 +912,9 @@ def create_linux_bundle_gunk(ddir: str, libdir_name: str) -> None:
safe_makedirs(icdir) safe_makedirs(icdir)
shutil.copy2('logo/kitty.png', icdir) shutil.copy2('logo/kitty.png', icdir)
deskdir = os.path.join(ddir, 'share', 'applications') deskdir = os.path.join(ddir, 'share', 'applications')
icscaldir = os.path.join(ddir, 'share', 'icons', 'hicolor', 'scalable', 'apps')
safe_makedirs(icscaldir)
shutil.copy2('logo/kitty.svg', icscaldir)
safe_makedirs(deskdir) safe_makedirs(deskdir)
with open(os.path.join(deskdir, 'kitty.desktop'), 'w') as f: with open(os.path.join(deskdir, 'kitty.desktop'), 'w') as f:
f.write( f.write(