rtex icon indicating copy to clipboard operation
rtex copied to clipboard

RTeX::Tempdir#uuid breaks if uuidgen not present on OS

Open jacott opened this issue 15 years ago • 2 comments

The line (result = uuidgen.strip rescue nil).empty? does not work since empty? is not a method in Nil class. You could use nil? or blank? but why even call uuidgen; it only needs to be unique on the current server therefore using "#{Time.now.to_f}-#{Thread.current.hash}-#{hash}" is more than adequate.

Note that I propose Time.now.to_f rather than to_i

Thanks

jacott avatar Feb 25 '10 23:02 jacott

+1

matzke avatar Jan 06 '11 16:01 matzke

Hello everyone, I'am having the same problem, do anyone have any idea how to fix this on windows XP ?

Thanks Harks

LoicRegnault avatar Feb 14 '13 10:02 LoicRegnault