mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Add kitty-launcher.desktop to handle URL scheme for Linux
This commit is contained in:
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;
|
||||
'''
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user