[fpc-pascal] programmatically creating desktop icons under Linux

Matthias Klumpp matthias at nlinux.org
Sun Feb 7 19:55:24 CET 2010


On Sun, 07 Feb 2010 13:31:15 -0500, brian <brian at meadows.pair.com> wrote:
> This question is specific to a PC running Kubuntu 9.1 64-bit with a 
> KDE 4.1 desktop.
> 
> I have a large number of PDFs. Their filenames are not meaningful, but 
> I do have a list of filename versus contents.
> 
> I'd like to be able to read that list and create a bunch of desktop 
> icons using the contents as the name of each icon, and where clicking 
> on the icons invokes okular to read the PDF. I haven't been able to 
> find anything about creating such an icon programmatically from Free 
> Pascal.
> 
> Can anyone point me in the right direction?

Just create a link to those files with the desired filename in
$HOME/Desktop
This works with GNOME too. If you want to create those links as
Plasma-Widgets, you have to chnage the Plasma config files.

 Matthias




More information about the fpc-pascal mailing list