Skip to content

system_open command cannot open certain types of files properly #2528

Closed Answered by alex-courtis
la1den asked this question in Q&A
Discussion options

You must be logged in to vote

That's... just how xdg-open works. nvim-tree will simply call system_open.cmd with the absolute file path as the argument.

Run xdg-open something.js directly from a terminal to see what is going on.

Long ago I overrode xdg-open and have never looked back:

: ; cat /usr/local/bin/xdg-open
#!/bin/sh

# Suppress any spurious output from noisy apps like chrome.
# Invoke /usr/bin/xdg-open directly for more interactive operations.

/usr/bin/xdg-open "${@}" > /dev/null 2>&1

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@la1den
Comment options

@alex-courtis
Comment options

Answer selected by la1den
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #2526 on November 11, 2023 23:47.