replacing del with dict.pop(key, None)
support ubuntu 12.04
Fixed: show preferences dialog only if someone has logged in