You can use env variables for S_CONFIG_FOLDER,S_LIB_FOLDER,S_DATA_FOLDER/stop failing if there is no XDG env variable