Enhancing the last comment: When you have a file with URLs for which you want to create the desktop-files, then you can use this bash-script for this task:
#!/bin/bash
URLS_FILE=URL_LIST
PREFIX=generated_desktopfile_
FORMAT="%05d.desktop"
RESULTS=RES
any-dl -f create_desktoplink.adl -p desktop `paste $URLS_FILE -s` > $RESULTS
csplit $RESULTS --prefix=$PREFIX --suffix-format=$FORMAT /\#\ \-\-\-/ {*}
rm -v generated_desktopfile_00000.desktop # sorry for the radcoded name ;-)
How to create desktop-links files for Gnome Desktop from a list or URLs?
It's about three lines of code, when using a certain parser for this task.
First you create a file, say "create_desktoplink.adl" and it contans the following:
parsername "desktop": ()
start
print( "[Desktop Entry]" );
print( "Encoding=UTF-8" );
titleextract;
store("title");
print("Name=", $title);
print("Type=Link");
print("URL=", $STARTURL);
print("Icon=gnome-fs-bookmark");
end
Then you call any-dl this way:
$ any-dl -f create_desktoplink.adl -p desktop <list_of_urls> > RESULTS
Then you need to split the results into seperated files:
$ csplit RESULTS --prefix=generated_desktopfile_ /\#\ \-\-\-/ {*}
Then you can remove the file with Index 00 with "rm".
Thats it.
A tool for securing DNS communications between a client and a DNS resolver.