Imho setting recyclable would be quicker and involve less code. call (code i cant remember. will edit tmrw) to get the attr and then 'attr |= dmattrrecyclable' or sth (that constant is wrong. :-/) and the write it back.
Sorry. it is late. i am tired. expect an more thorough answer tomorrow.
Ryan Rix -- KDE Developer, HomePage