1

I have Dropbox shared with Windows PC's which contain some .url internet shortcuts. These do not open in Lubuntu. How can I open these from Lubuntu? Using the Opera browser on all platforms.

1

What worked for me was this trick by Saidul Hassan, with some minor modifications.

EDIT: I had to change this slightly to handle URL's with an '=' symbol in them.

  1. Right-click one of the .url files in Lubuntu file manager and go to Open With... or Properties --> Open With and choose Custom Command Line.
  2. Enter this as the terminal command, substituting opera for the browser of your choice:

    bash -c "cat %f | grep URL= | cut -b5- | xargs opera &"
    
  3. Do NOT check "Execute in terminal emulator."

  4. You must give it an Application Name at bottom.
  5. Check the box for Set selected application as default.

For example, this should look like the following:

How to open .url files in Lubuntu

Now double-clicking .url files should open them as a new tab in the chosen browser.

Note: If you end up with more than three "Open With" associations to a file type, things may start behaving strangely. To "remove" these extra associations, look in /home/you/.local/share/applications for some duplicated .desktop files and remove them.

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.