Can't open any wine program

Questions about Wine on Linux
Locked
daedalus46
Level 2
Level 2
Posts: 10
Joined: Sun May 21, 2023 11:02 pm

Can't open any wine program

Post by daedalus46 »

Hello, I've had this issue for a few months now hoping that an update would fix it. But nothing seems to change.
The terminal returns:

Code: Select all

wine nfstr.exe 
0024:err:file:init_redirects /home/manjaro/.wine/dosdevices/c:/windows: No existe el fichero o el directorio
wine: could not open working directory L"C:\\windows\\system32\\", starting in the Windows directory.
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:err:wineboot:main Cannot set the dir to L"C:\\windows" (2)
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2).
wine: could not open working directory L"C:\\windows\\system32\\", starting in the Windows directory.
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"Eventlog" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"nsiproxy" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"NDIS" failed to start: 2
002c:err:shell:SHGetFolderPathAndSubDirW Failed to create directory L"C:\\users\\manjaro\\AppData\\Roaming".
002c:err:shell:SHGetFolderPathAndSubDirW Failed to create directory L"C:\\users\\manjaro".
002c:err:shell:SHGetFolderPathAndSubDirW Failed to create directory L"C:\\users\\manjaro\\AppData\\Local".
wine: could not load kernel32.dll, status c0000135
It does manages to open with sudo with different settings (doesn't solve the problem).
daedalus46
Level 2
Level 2
Posts: 10
Joined: Sun May 21, 2023 11:02 pm

Re: Can't open any wine program

Post by daedalus46 »

I use Wine 8.17-1, Manjaro, Linux kernel LTS 6.1.55-1
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't open any wine program

Post by jkfloris »

Maybe you can repair your wineprefix with:

Code: Select all

sudo chown -R $USER:$USER $HOME/.wine/
wineboot -u
If that doesn't work, can you create a new prefix?

Code: Select all

WINEPREFIX=$HOME/wine-test wine winecfg
daedalus46
Level 2
Level 2
Posts: 10
Joined: Sun May 21, 2023 11:02 pm

Re: Can't open any wine program

Post by daedalus46 »

jkfloris wrote: Tue Oct 24, 2023 4:14 pm Maybe you can repair your wineprefix with:

Code: Select all

sudo chown -R $USER:$USER $HOME/.wine/
wineboot -u
If that doesn't work, can you create a new prefix?

Code: Select all

WINEPREFIX=$HOME/wine-test wine winecfg
Thank you for replying, both commands return:

Code: Select all

wine: could not load kernel32.dll, status c0000135
and wineboot -u returns:

Code: Select all

0024:err:file:init_redirects /home/manjaro/.wine/dosdevices/c:/windows: No existe el fichero o el directorio
wine: could not open working directory L"C:\\windows\\system32\\", starting in the Windows directory.
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:err:wineboot:main Cannot set the dir to L"C:\\windows" (2)
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2).
wine: could not open working directory L"C:\\windows\\system32\\", starting in the Windows directory.
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"Eventlog" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"nsiproxy" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"NDIS" failed to start: 2
002c:err:shell:SHGetFolderPathAndSubDirW Failed to create directory L"C:\\users\\manjaro\\AppData\\Roaming".
002c:err:shell:SHGetFolderPathAndSubDirW Failed to create directory L"C:\\users\\manjaro".
002c:err:shell:SHGetFolderPathAndSubDirW Failed to create directory L"C:\\users\\manjaro\\AppData\\Local".
wine: could not load kernel32.dll, status c0000135

daedalus46
Level 2
Level 2
Posts: 10
Joined: Sun May 21, 2023 11:02 pm

Re: Can't open any wine program

Post by daedalus46 »

Deleted the .wine folder, now works.
Locked