Glam Prestige Journal

Bright entertainment trends with youth appeal.

In our work intranet I get served links in the form:

file:///home/bruni/Documents/

(These links lead to a mountpoint on my local filesystem.)

Is it possible to click on these links and open them in Dolphin?

I am using google chrome on KUbuntu 17.10.

In Firefox I have found an add-on (Local Filesystem Links) that does exactly this (though it strangely opens the links in Nautilus and not Dolphin).

On Chrome every add-on I tried seems to be written for windows. Does anybody know of a similar solution for Chrome under Kubuntu?

PS: To clarify. One solution would be something like this for Ubuntu.

12

4 Answers

The problem is due to the security policies of the web browsers. More detailed explanation is provided here. The good news is that there is a couple of available extensions that could solve this problem. For example:

  • For Firefox prior to Firefox Quantum:

    • The extension LocalLink will add an entry (called Open Link in Local Context) into the right click context menu.

    • The extension Local Filesystem Links will open these links (file:///) into the default File Explorer - in my case it is Nautilus.

  • For Chrome/Chromium:

    • The extension Enable local file links will cause the browser to work with the local links (file:///) as if they are 'normal' links.

While the extension Local Filesystem Links could serve within Firefox according to the question's requirements, I couldn't found an analogical extension for Chrome/Chromium. But I found the following workaround.

1. Add the extension Open in Firefox to Chrome/Chromium. Follow the installation guide and setup the extension.

2. Once the extension works properly, right click on its icon and go to the Options menu. Fill in /usr/bin/dolphin for "Path to executable" and Save.

3. Now you could open these links via the option Open Link in Firefox Browser from the right click context menu.


Here is a demo how the mentioned extensions for Chrome work (together):

enter image description here

1

If @pa4080 approach is what you want to follow, use the "External Application Button" extension (from the same developer) so that you can rename the context-menu item properly.

The extension is available for Firefox, Opera, and Chrome:

1

An alternative that works for Firefox Quantum (though technically not answering the question)

Edit the file prefs.js in your firefox profile folder under ~/.mozilla/firefox to include

user_pref("capability.policy.policynames", "localfilelinks"); user_pref("capability.policy.localfilelinks.sites", ""); user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

replacing for the site you want to include this functionality. Then you will also have to use the "External Application Button" extension as described in @Belaviyo 's answer ()

I just discovered this Chrome extension recently. It can bypass Chrome security boundaries. Take a look and see if it works for you.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy