Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Devuan wine error: chdir to /run/user/1000/wine/server-fe01-b6066c : No such file or directory

tl;dr

test -e /run/user/$( id -u )/wine && unlink /run/user/$( id -u )/wine ; ln -sf /tmp/.wine-$( id -u ) /run/user/$( id -u )/wine

Discussion

I was building a new system with Devuan and fluxbox and wine, and I came across an interesting error. When I try to run anything with wine, I get this error:

wine: chdir to /run/user/1000/wine/server-fe01-b6066c : No such file or directory

I made sure that directory existed, and file existed, but no luck. So I had to search on the Internet. I ended up reverting to Google to find the answer, and I found a recent debian discussion. Some debian patch needs to be adjusted, and this is a very recent development. So it should be a temporary thing. In the mean time, you can just symlink the second location to the first one. /run is typically a volatile filesystem (tmpfs) so if you end up completely borking your /run/user/$( id -u )/wine directory, you should not worry. A reboot will reset it.

References

google: "wine: chdir to /run/user : No such file or directory"

Weblinks

Solution from Benjamin Poirier at #946951 - can't start wine: chdir to /run/user/1000/wine/server-805-14c0be6 : No such file or directory - Debian Bug report logs

Comments