Public bug reported:

xdgRuntimeDirectory uses wrong environment variable when called with a
null handle. My understanding is that it should use XDG_RUNTIME_DIR
instead of XDG_RUNTIME_DIRECTORY:

const char * xdgRuntimeDirectory(xdgHandle *handle)
{
    if (handle)
        return xdgGetCache(handle)->runtimeDirectory;
    else
        return xdgEnvDup("XDG_RUNTIME_DIRECTORY");
}


Calling with NULL returns a NULL pointer, because XDG_RUNTIME_DIRECTORY does 
not exist.

** Affects: libxdg-basedir (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1821670

Title:
  Non-cached calls to xdgRuntimeDirectory use wrong env. variable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxdg-basedir/+bug/1821670/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to