Use x-shellscript in addition to x-sh
/etc/mime.types uses x-sh and file --mime-type uses x-shellscript. Sigh. Fixes #4881
This commit is contained in:
parent
0c4b20aa4e
commit
fb40280d3c
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
|
||||
|
||||
text_mimes = ('application/javascript', 'application/x-sh', 'application/json')
|
||||
text_mimes = ('application/javascript', 'application/x-sh', 'application/x-shellscript', 'application/json')
|
||||
|
||||
|
||||
def is_rc_file(path: str) -> bool:
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -985,7 +985,7 @@ def create_linux_bundle_gunk(ddir: str, libdir_name: str) -> None:
|
|||
Icon=kitty
|
||||
Categories=System;TerminalEmulator;
|
||||
NoDisplay=true
|
||||
MimeType=image/*;application/x-sh;inode/directory;text/*;x-scheme-handler/kitty;
|
||||
MimeType=image/*;application/x-sh;application/x-shellscript;inode/directory;text/*;x-scheme-handler/kitty;
|
||||
'''
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue