When printing files with xfprint, temporary files end up showing up in /tmp. For example: /tmp/xfprintapXtqE After the files are spooled with lpr, they are not deleted. Reproducible: Always Steps to Reproduce: 1. 2. 3.
i'm aware of this behaviour, at first time i was removing them but it caused some problems sometimes when the file got removed before it was spooled :(; if i find a correct way to implement it, i'll fix it.
how were you removing the files? In separate code, or immediately following the lpr? I believe that once lpr returns, the job is fully spooled, so I think you could safely "lpr file; rm file"...? without this, the files just stay around...
i use g_spawn_sync to launch lpr i don't think lpr file; rm file would work (or maybe it does in a shell). i'm thinking about some kind of lock.
that seems strange...g_spawn_sync is supposed to block until the child exits, so if it blocks until the lpr exits, you should be able to unlink the file immediately thereafter and there shouldn't be a problem...?
yeah i know, that's what i did first but it didn't work well
i readded the unlink (file)