Also add openable mimetypes to kitty-open.desktop

This commit is contained in:
Kovid Goyal
2022-02-06 20:27:50 +05:30
parent 73b0312dcb
commit 01d866f482
2 changed files with 6 additions and 4 deletions

View File

@@ -969,7 +969,7 @@ Icon=kitty
Categories=System;TerminalEmulator;
'''
)
with open(os.path.join(deskdir, 'kitty-launcher.desktop'), 'w') as f:
with open(os.path.join(deskdir, 'kitty-open.desktop'), 'w') as f:
f.write(
'''\
[Desktop Entry]
@@ -983,7 +983,7 @@ Exec=kitty +open %U
Icon=kitty
Categories=System;TerminalEmulator;
NoDisplay=true
MimeType=x-scheme-handler/kitty;
MimeType=image/*;application/x-sh;inode/directory;text/*;x-scheme-handler/kitty;
'''
)