mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Add kitty-launcher.desktop to handle URL scheme for Linux
This commit is contained in:
parent
648bff02b5
commit
73a197fcde
1 changed files with 17 additions and 0 deletions
17
setup.py
17
setup.py
|
|
@ -967,6 +967,23 @@ TryExec=kitty
|
|||
Exec=kitty
|
||||
Icon=kitty
|
||||
Categories=System;TerminalEmulator;
|
||||
'''
|
||||
)
|
||||
with open(os.path.join(deskdir, 'kitty-launcher.desktop'), 'w') as f:
|
||||
f.write(
|
||||
'''\
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=kitty URL Launcher
|
||||
GenericName=Terminal emulator
|
||||
Comment=Open URLs with kitty
|
||||
TryExec=kitty
|
||||
Exec=kitty +open %U
|
||||
Icon=kitty
|
||||
Categories=System;TerminalEmulator;
|
||||
NoDisplay=true
|
||||
MimeType=x-scheme-handler/kitty;
|
||||
'''
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue