xdg-sanity cannot open plaintext links in the terminal #17

Closed
opened 2022-11-28 17:32:52 -07:00 by emma · 2 comments
Owner

When clicking a link in an application to a text/plain resource, if the default text editor has Terminal=true set in its .desktop file, it errors out:

Open URL Error

Unknown URL type, cannot open:
  %U
  -e
  nvim
  https://git.tebibyte.media/emma/xdg-sanity/raw/branch/main/xdg-sanity.sh

Press Enter or Esc to exit

somehow the %U -e nvim is being passed to handlr.

When clicking a link in an application to a `text/plain` resource, if the default text editor has `Terminal=true` set in its `.desktop` file, it errors out: ``` Open URL Error Unknown URL type, cannot open: %U -e nvim https://git.tebibyte.media/emma/xdg-sanity/raw/branch/main/xdg-sanity.sh Press Enter or Esc to exit ``` somehow the `%U -e nvim` is being passed to `handlr`.
emma changed title from xdg-sanity to xdg-sanity cannot open plaintext links in the terminal 2022-11-28 17:33:10 -07:00
Author
Owner

This behavior does not occur when xdg-open is run directly from the terminal. It opens properly in neovim.

This behavior does not occur when `xdg-open` is run directly from the terminal. It opens properly in neovim.
Author
Owner

This was a kitty issue, fixed by modifying the desktop file. If I can find the link again to how I fixed it, I will put it here.

This was a kitty issue, fixed by modifying the desktop file. If I can find the link again to how I fixed it, I will put it here.
emma closed this issue 2023-03-20 17:17:35 -06:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: emma/xdg-sanity#17
No description provided.