[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#918666: wine hardcodes /run/user/$UID directory



control: tag -1 moreinfo

On Tue, Jan 8, 2019 at 4:21 AM Julian Andres Klode wrote:
> wine hardcodes the use of /run/user/$UID/wine if it can determine
> $UID (if getuid() exists) as the place to store server information.
>
> It's not clear to me who is responsible for creating those directories,
> but I'm not sure we can rely on them being available, so wine should
> fallback to /tmp if /run/user/$UID does not exist, I guess.

This is already the case.  The current implementation automatically
falls back to TMPDIR if /run/user/$UID does not exist.  It also
automatically handles creation of the wine subdirectory if it does not
exist.

There may corner cases that are yet unhandled, can you better define
the problem you've actually seen?

> In fact, it should be using $XDG_RUNTIME_DIR, not
> hardcoding /run/user/$UID.

There is discussion in the upstream bug about the extra concerns that
would need to be handled to support XDG_RUNTIME_DIR.  At this time, I
plan to wait for upstream to decide how to handle that. In the
meantime, it will not be supported.

> (this surfaced in Ubuntu autopkgtest for gpgv-win32).

What was the actual error?

Best wishes,
Mike


Reply to: