fix --desktop segfault on desktop dir attributes change #425