在Linux上使用Update-Alternatives将Chromium设置为默认Web浏览器

时间:2018-11-18 11:43:08

标签: chromium shared-objects

我试图通过以下命令使用update-alternatives将Chromium设置为默认Web浏览器。尽管我成功地将'/ snap / bin / chromium'添加到--config中,但是它没有用。

levi@Lab-XPS:~$ sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /snap/bin/chromium 200

levi@Lab-XPS:~$ sudo update-alternatives --config x-www-browser 
There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                Priority   Status
------------------------------------------------------------
  0            /snap/bin/chromium   200       auto mode
  1            /snap/bin/chromium   200       manual mode
* 2            /usr/bin/firefox     40        manual mode

Press <enter> to keep the current choice[*], or type selection number: 0
update-alternatives: using /snap/bin/chromium to provide /usr/bin/x-www-browser (x-www-browser) in auto mode

levi@Lab-XPS:~$ x-www-browser google.com
error: unknown command "google.com", see 'snap help'

然后我发现/ snap / bin / chromium只是指向LSB共享对象的符号链接:

levi@Lab-XPS:~$ file /snap/bin/chromium
/snap/bin/chromium: symbolic link to /usr/bin/snap
levi@Lab-XPS:~$ file /usr/bin/snap
/usr/bin/snap: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=ebc3e3ce9d2976e049f84e909f9822e878a39884, stripped

那么,是否有解决共享对象并继续设置的解决方案?还是我不得不放弃使用更新替代品?谢谢。

0 个答案:

没有答案