• Philip Withnall's avatar
    gutils: Refactor initialisation of XDG variables · e6eb4869
    Philip Withnall authored
    Split out the code which calculates each XDG variable value from the
    code which caches it, so that GLib can internally recalculate the
    variables if needed, without necessarily trashing the user-visible
    cache.
    
    This will be useful in a following commit to add support for explicitly
    reloading the variables.
    
    This commit necessarily reworks how g_get_user_runtime_dir() is
    structured, since it was inexplicably structured differently from (but
    equivalently to) the other XDG variable functions.
    
    Future refactoring could easily share a lot more code between these
    g_build_*() functions.
    Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
    
    #538
    e6eb4869
glib.supp 8.01 KB