I've (partly) figured it out. The fault appears to be in an interaction with Nautilus. Nautilus is running because I use a Dropbox applet, which has a nautilus front-end.