LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Open URL files (https://www.linuxquestions.org/questions/linux-software-2/open-url-files-4175557071/)

BrainPowered 10-24-2015 07:39 PM

Open URL files
 
Linux browsers won't open and parse a file that contains only the text
[InternetShortcut]URL=http://linuxquestions.org/
to get and render a default file from a web server.

[rant]
They have no problems pushing advanced advertising code.
[/rant]

berndbausch 10-24-2015 09:58 PM

It's not quite clear what you want to do and how it fails. I am speculating that it's one or more of the below things; can you be a bit more specific?

Double-clicking on a URL file in the GUI? What happens?
Issuing some bash command, but which command? How does this fail?
Searching something on your computer? On the internet? What do you do, and how does it fail?
Modifying URL files from a Windows system perhaps, so that you can use then in the Mint file manager?

ondoho 10-25-2015 04:14 AM

so you are using chrome for linux, and it has the capability to save url's as icons/files to your desktop?
and now you need to edit these files?
am i understanding this correctly?

BrainPowered 10-26-2015 07:52 AM

Quote:

Originally Posted by ondoho (Post 5439891)
am i understanding this correctly?

Thanks.

ondoho 10-26-2015 01:42 PM

ok, so i was going to ask you: "how did you create these .url files in the first place?"

but your ongoing rant kind of suggests that you come from a proprietary os and now complain that linux does not behave the same way.
whatever.

searching your problem gives many results, and skimming a few, it seems you can make .url files open in your browser rather easily.

this one looked good and recent.

Habitual 10-26-2015 04:42 PM

n/m.

.url is a windows thing?

frankbell 10-26-2015 09:13 PM

This

Code:

[InternetShortcut]URL=http://linuxquestions.org/
appears to be a Windows thing: https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

It's certainly not valid HTML.

ondoho 10-27-2015 04:26 PM

^ exactly, it's another of those bs-pseudo-standards created by microsoft, ignoring all real standards.

searching for it yesterday, there was some beautiful rant, but op wanted a (boooring!) solution.
a simple shell script.
the beauty of linux.


All times are GMT -5. The time now is 02:35 AM.