On 2019-12-18 12:40:37 +0100, Vincent Lefevre wrote: > On 2019-12-18 12:35:36 +0100, Vincent Lefevre wrote: > > When I want to execute a .exe executable I've built, I get the following > > error: > > > > $ wine ./tversion.exe > > wine: chdir to /run/user/1000/wine/server-805-14c0be6 : No such file or > > directory > > > > Note: there is no chdir in my program, this is a chdir executed by wine. > > Actually, the program does not matter. The error seems to occur very > early, before wine tries to look at the program: > > $ wine zzzzzzzzzz > wine: chdir to /run/user/1000/wine/server-805-14c0be6 : No such file or > directory
I've looked at the issue with strace, and indeed, this occurs before an attempt to search for the program. Something interesting: for the /usr/lib/wine/wineserver process, [...] 2022894 chdir("/home/vlefevre/.wine") = 0 2022894 openat(AT_FDCWD, ".", O_RDONLY) = 4 2022894 fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 2022894 getuid() = 1000 2022894 getuid() = 1000 2022894 lstat("/tmp/.wine-1000", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 2022894 getuid() = 1000 2022894 lstat("/tmp/.wine-1000/server-805-14c0be6", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 2022894 getuid() = 1000 2022894 chdir("/tmp/.wine-1000/server-805-14c0be6") = 0 [...] but the wine client uses [...] 2022892 chdir("/run/user/1000/wine/server-805-14c0be6") = -1 ENOENT (No such file or directory) [...] the first time before starting wineserver, and another time after. There seems to be a mismatch for the base directory. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)