On Thu, Sep 04, 2014 at 02:30:58PM +0100, Jamie Griffin wrote: > On 04/09/2014 10:20, Thomas Adam wrote: > >On Thu, Sep 04, 2014 at 09:48:52AM +0100, Jamie Griffin wrote: > >>Is there a way to populate a set of buttons based on the contents of a file > >>or directory, perhaps using a default icon and a predefined template of an > >>FvwmButtons instance? > >> > >>So, for example, if I had some documents in a directory each the same format > >>and not likely to change often, can I have a Container filled to a grid of > >>say 'nxn' depending on the number of documents in the directory which could > >>be obtained through a script and/or PipeRead and then use a default icon for > >>each button.
> It's not so much I can't write it, i'm just considering starting > something I think would work well if set up using that method and > wanted to know if it is worth me trying that approach. Just be careful with the filenames when you read them in via PipeRead or send them to FvwmButtons with "SendToModule changebutton". You probably want to forbid a some characters in file names (single and double quotes, backticks, backslashes, newlines, dollar characters and maybe other whitespace. If you pass them to fvwm, bad things could happen. Ciao Dominik ^_^ ^_^ -- Dominik Vogt