Software & AppsOperating SystemLinux

How To Fix Blank Tabs Issue When Opening External Links in Chrome on Ubuntu

Ubuntu 16

In this guide, we will walk you through the process of resolving a common issue faced by Ubuntu users: blank tabs opening when clicking on external links in Google Chrome. This can be a frustrating problem, but thankfully, there are a few solutions that can help rectify this issue.

Quick Answer

To fix the blank tabs issue when opening external links in Chrome on Ubuntu, you can try modifying the google-chrome.desktop file by adding %U to the Exec line. If that doesn’t work, you can delete the google-chrome.desktop file and recreate the Google Chrome app icon.

Understanding the Issue

The issue at hand is that when you click on an external link in Google Chrome while using Ubuntu, instead of opening the link, a blank tab opens. This is not the expected behavior and can disrupt your browsing experience.

Solution 1: Modifying the .desktop File

One of the solutions to this problem involves modifying the google-chrome.desktop file. This file is where Ubuntu stores the configuration for the Google Chrome application icon.

Step-by-Step Guide

  1. Open the Terminal. You can do this by pressing Ctrl + Alt + T on your keyboard.
  2. In the Terminal, type the following command to open the google-chrome.desktop file in a text editor:
gedit $HOME/.local/share/applications/google-chrome.desktop
  1. In the text editor, find the line that reads Exec=/opt/google/chrome/chrome.
  2. Modify this line by adding a space and %U at the end. The line should now read Exec=/opt/google/chrome/chrome %U.
  3. Save the file and close the text editor.

The %U parameter is a placeholder that allows the application to handle multiple files or URLs. By adding this to the Exec line, we are telling Chrome to handle multiple URLs, which can resolve the blank tab issue.

Solution 2: Recreating the App Icon

If the first solution doesn’t work, another approach is to delete the google-chrome.desktop file and recreate the Google Chrome app icon.

Step-by-Step Guide

  1. Open the Terminal.
  2. Run the following command to delete the google-chrome.desktop file:
rm $HOME/.local/share/applications/google-chrome.desktop
  1. After deleting the file, recreate the app icon for Google Chrome.

Please note that these solutions require you to have administrative access to your Ubuntu system. Also, it’s always a good practice to back up any file before modifying or deleting it.

Conclusion

The blank tabs issue when opening external links in Google Chrome on Ubuntu can be a nuisance, but it’s usually easy to fix. The solutions provided in this guide involve modifying the google-chrome.desktop file or recreating the Google Chrome app icon. If neither of these solutions works, further troubleshooting may be necessary, such as checking the mimeapps.list file or the google-chrome-stable.desktop file. Remember to always make Google Chrome your default browser after applying these fixes to ensure a smooth browsing experience.

Why do I see blank tabs when opening external links in Chrome on Ubuntu?

This issue occurs due to a misconfiguration in the google-chrome.desktop file, which is responsible for launching Google Chrome.

How do I modify the `google-chrome.desktop` file?

To modify the google-chrome.desktop file, open the Terminal and enter the command gedit $HOME/.local/share/applications/google-chrome.desktop. Find the line that reads Exec=/opt/google/chrome/chrome and add a space and %U at the end. Save the file and close the text editor.

What does the `%U` parameter do in the `Exec` line?

The %U parameter is a placeholder that allows the application to handle multiple files or URLs. Adding %U to the Exec line in the google-chrome.desktop file tells Chrome to handle multiple URLs, which can resolve the blank tab issue.

What should I do if modifying the `google-chrome.desktop` file doesn’t work?

If modifying the google-chrome.desktop file doesn’t resolve the issue, you can try deleting the file and recreating the Google Chrome app icon. Open the Terminal and enter the command rm $HOME/.local/share/applications/google-chrome.desktop. Then, recreate the app icon for Google Chrome.

Do I need administrative access to my Ubuntu system to apply these solutions?

Yes, you will need administrative access to modify or delete the google-chrome.desktop file. Make sure you have the necessary permissions before proceeding.

Should I back up any files before making modifications?

It is always a good practice to back up any file before modifying or deleting it. This ensures that you have a copy of the original file in case anything goes wrong during the process.

What should I do if none of these solutions work?

If neither of these solutions resolves the blank tabs issue, further troubleshooting may be required. You can try checking the mimeapps.list file or the google-chrome-stable.desktop file. Additionally, seeking assistance from Ubuntu support forums or Google Chrome forums can provide more specific guidance for your situation.

Should I make Google Chrome my default browser after applying these fixes?

Yes, it is recommended to make Google Chrome your default browser after applying these fixes to ensure a smooth browsing experience.

Leave a Comment

Your email address will not be published. Required fields are marked *