Skip to content

Kitty can't open scripts with no extension in MacOS #5160

@DUOLabs333

Description

@DUOLabs333

Describe the bug
If you try to open an executable/script with no extension with Kitty via the "Open With" menu, it will fail with Unknown URL type, cannot open:

To Reproduce
Steps to reproduce the behavior:

  1. Make an exectuable with no extension
  2. Right click to open it with Kitty
  3. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Environment details

Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
Loaded config files:
  /Users/system/.config/kitty/kitty.conf

Config options different from defaults:
Added shortcuts:
        ctrl+c → copy_to_clipboard
        ctrl+t → new_tab
        ctrl+v → paste_from_clipboard
        ctrl+w → close_tab

Important environment variables seen by the kitty process:
        PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/u
        LANG                                en_US.UTF-8
        SHELL                               /bin/zsh
        USER                                system

Additional context
Try to reproduce the problem with kitty --config NONE if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions