kyechou / leagueoflegends

League of Legends install and launch wrapper for Linux
https://www.leagueoflegends.com
GNU General Public License v3.0
288 stars 22 forks source link

The script doesn't have permission to create a directory in the default folder #101

Closed ghost closed 1 year ago

ghost commented 1 year ago

System information

If your issue is related to graphics display, please attach the output of vulkaninfo --summary.

Steps to reproduce

❯ yay -S leagueoflegends-git
❯ leagueoflegends install
[+] Creating wineprefix: /run/media/user/R/WineDir
mkdir: cannot create directory ‘/run/media/user’: Permission denied

❯ sudo mkdir -p /run/media/user/R/WineDir
❯ sudo chown -R user:user /run/media/user
❯ echo $XDG_DATA_HOME
/home/user/.local/share
❯ leagueoflegends install

    Select your region
    #1 - North America
    #2 - EU West
    #3 - EU Nordic & East
    #4 - Latin America North
    #5 - Latin America South
    #6 - Brazil
    #7 - Turkey
    #8 - Russia
    #9 - Japan
    #10 - Oceania
    #11 - Republic of Korea
    #12 - Taiwan
    #13 - Philippines
    #14 - Singapore
    #15 - Vietnam
    #16 - Thailand

[+] Downloading installer...
[+] Installing League of Legends...
wineserver: using server-side synchronization.
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002
006c:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\win32k.sys"
006c:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgkrnl.sys"
006c:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgmms1.sys"
wine: configuration in L"/run/media/user/R/WineDir" has been updated.
[+] Waiting for wine processes...
036c:err:rpc:I_RpcGetBuffer no binding
0494:err:service:device_notify_proc failed to open RPC handle, error 1722
0528:err:d3d:wined3d_context_gl_set_pixel_format wglSetPixelFormatWINE failed to set pixel format 5 on device context 0x3010053.
0054:err:service:device_notify_proc failed to open RPC handle, error 1722
00cc:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
018c:err:service:device_notify_proc failed to open RPC handle, error 1722
01c4:err:d3d:wined3d_context_gl_set_pixel_format wglSetPixelFormatWINE failed to set pixel format 5 on device context 0x3010053.
0708:err:ole:CoUninitialize Mismatched CoUninitialize
04cc:err:service:device_notify_proc failed to open RPC handle, error 1722
0660:err:d3d:wined3d_context_gl_set_pixel_format wglSetPixelFormatWINE failed to set pixel format 5 on device context 0x3010053.
0404:err:ole:CoUninitialize Mismatched CoUninitialize
0354:err:ole:CoUninitialize Mismatched CoUninitialize
ghost commented 1 year ago

This was my fault. I had export WINEPREFIX="/run/media/$USER/R/WineDir" in my zshenv for whatever reason.