Exit when there is no HOME environment variable The home directory is used in multiple places without checking whether it is non-NULL. I think that it is very unlikely for someone to want to use this program without that variable in the environment, so we just bail out if it is missing. . If anyone wants gtk-theme-switch2 to work without a HOME environment variable, they will surely file a bug about this.