gvim:URLOpen https://www.vim.org/A browser should be opened.
9.1.1966
Ubuntu 24.04
The terminal doesn't matter since it only fails in the GUI version
bash
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
so what does :!xdg-open https://www.vim.org/ do?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
It works (if you append & at the end). The problem is that :Launch xdg-open https://www.vim.org/ doesn't work, which is what URLOpen basically does.
:Launch firefox https://www.vim.org/ works correctly, so the problem is calling xdg-open from the GUI, I guess?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I don't get it. For me xdg-open does not work at all. I either need :!setsid xdg-open ... or :!gio open.
What that means is, configure your g:Openprg correctly
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Just run xdg-open in the background by appending & . This is what Launch already does.
I don't think I need to configure g:Openprg because URLOpen does work in the terminal. I want to understand why it doesn't work in the GUI version.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Well it works for some, it doesn't work for others. I have seen different behaviour even when using different shells and different commadns. It's inherently hard to debug this, I don't think there is an easy way to fix this reliably for every user, so you'll have to configure it for your system (or debug this if you are really interested to find the root cause), if it doesn't work for you. Perhaps using :set guioptions+=! works better, not sure.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()