added parameter to decided if gsettings is executed or not