dmedvinsky / gsimplecal

Simple and lightweight GTK calendar (BSD license)
http://dmedvinsky.github.io/gsimplecal
Other
198 stars 19 forks source link

Can't unconditionally rely on proc #17

Closed dmedvinsky closed 11 years ago

dmedvinsky commented 11 years ago

Apparently on FreeBSD procfs is disabled by default, so when this is the case, gsimplecal crashes on ftok invocation. We should check if reading from procfs gave us an error and do something else instead, for example using $0 so to say. Or maybe replace procfs with it entirely if it proves to be reliable.

dmedvinsky commented 11 years ago

The fix from a01aba5 doesn't work when running gsimplecal by gsimplecal command, i.e. somewhere from the $PATH.