在Linux机器上获取已安装的浏览器列表。

huangapple go评论73阅读模式
英文:

Getting a list of installed browsers on the Linux machine

问题

我一直在寻找一种获取Linux机器上已安装浏览器列表的方法(主要是针对Ubuntu,但如果适用于所有发行版那就太好了)。我已经找到了在Windows上执行此操作的方法,详见这里

我正在使用dotnet 6(C#)。

英文:

I have been looking for a way to get the list of installed browsers on Linux machines (mainly for Ubuntu but would be great if it works for all distributions) I have found a way to do it in Windows from here.

I am using dotnet 6 (C#)

答案1

得分: 1

你可以以不同的方式进行检查:

  1. 你可以使用 grep 命令在 /usr/bin 文件夹中搜索 "browser"。
  2. 或者,如果你使用的是 Ubuntu,可以使用以下命令:
    dpkg --get-selections | grep browser

请告诉我是否有效。

英文:

You can check it in different ways:

  1. You can check the /usr/bin folder searching for "browser" with a grep
  2. Or use the following command if you are using ubuntu:
    dpkg --get-selections | grep browser

Let me know if it works.

huangapple
  • 本文由 发表于 2023年6月22日 18:14:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76530844.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定