Skip to content
代码片段 群组 项目
提交 5a56f2af 编辑于 作者: Anatoli Babenia's avatar Anatoli Babenia
浏览文件

Make `gdk open` work on Gitpod

Gitpod doesn't have `xdg-open` command, because if doesn't run in
desktop environment.

Use Gitpods native helper to open local URLs in a new tab.
上级 19871521
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
require 'mkmf'
module GDK
module Command
......@@ -48,8 +49,10 @@ def open_exec
def open_command
@open_command ||= if GDK::Machine.wsl?
'pwsh.exe -Command Start-Process'
elsif GDK::Machine.linux?
elsif find_executable('xdg-open')
'xdg-open'
elsif find_executable('gp')
'gp preview --external'
else
'open'
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册