"Debian" [bluefish] how to replace the default browser

bluefish default preview using the Firefox browser, to replace the browser to Google how to do?

 

1. Open Google determination system browser terminal command [Example: Debian System]

  Installed by default in / opt / google / chrome / years during installation, google-chrome file is an executable file

   You may attempt to enter in the terminal

    google-chrome

     If you can start Google browser,

    Command to the terminal google-chrome

    Otherwise, the absolute path as a terminal command: / opt / google / chrome / google-chrome

 

 

2. Open bluefish, select [Edit] -> [Preferences] -> [external command]

  

  Select [Add an entry]

  Value is written [label] is: Google-Chrome

  Write [command] value: google-chrome '% p' ​​& or / opt / google / chrome / google-chrome '% p' ​​&

  The Goole-Chrome in [default browser] check box checked, the original check and uncheck the box

  Click [Applications] -> [OK]

 

3. Try to open a html file, and calls the default browser preview

  

  Click the "Earth" icon on the toolbar to preview the page, it can be observed Google browser can open normal, but not normal preview the page,

  Content of the page is displayed as html source code, which is not the default because linux file extension, Firefox browser as the default browser linux

  You can not identify the file name suffix whether the page file, let the Google browser identification page must be added after the Web page file suffix

  mv index index.html

  You can see the page displayed properly, we will adjust the default browser to Google Chrome

Guess you like

Origin www.cnblogs.com/linyueshaoxia/p/11409297.html