How to open .url shortcuts (from Windows) on Lubuntu
772
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.
Check the box for Set selected application as default.
An example should look like the following:
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.
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.
EDIT2: Also adopted to use shortcuts with bracket characters in them, thanks to Kound.
Right-click one of the .url files in Lubuntu file manager and go to
Open With...
orProperties
-->Open With
and chooseCustom Command Line
.Enter this as the terminal command, substituting
opera
for the browser of your choice:Do NOT check "Execute in terminal emulator."
You must give it an Application Name at bottom.
Check the box for
Set selected application as default
.An example should look like the following:
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.Create a script and open the .url with it.
I have used these two scripts
or
See which one works for you