Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] VRCX Linux can't find/set config.json and Pictures don't receive metadata #1113

Open
EpicGazel opened this issue Feb 1, 2025 · 2 comments
Labels
bug Something isn't working done Completed and included in next release

Comments

@EpicGazel
Copy link

EpicGazel commented Feb 1, 2025

Describe the bug
VRCX looks for the VRChat config.json in the wrong folder (I believe this may be exclusive to linux mint (i.e. ubuntu/debian) steam versions). It looks in
/home/username/.local/share/Steam/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat/config.json
while it should be
/home/username/.steam/debian-installation/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat/config.json
Edit: This same folder issue keeps pictures from being updated with metadata.

To Reproduce
Steps to reproduce the behavior:

  1. Start VRCX in terminal (AppImage, Linux Mint)
  2. Navigate to advanced settings and open VRChat config.json settings
  3. Click save
  4. Error shows

Expected behavior
The config file should be set in the correct location.

Error

Error calling .NET method AppApiElectron.WriteConfigFile Error: Could not find a part of the path '/home/username/.local/share/Steam/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat/config.json'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
    at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
    at VRCX.AppApi.WriteConfigFile(String json) in /mnt/d/WindowsFiles/Documents/git/VRCX/Dotnet/AppApi/Common/VrcConfigFile.cs:line 23
    at VRCX_AppApi_WriteConfigFile(Closure, JSCallbackArgs)
    at Microsoft.JavaScript.NodeApi.Interop.JSCallbackOverload.Invoke(JSCallbackOverload overload, JSCallbackArgs args)
    at Microsoft.JavaScript.NodeApi.Interop.JSCallbackOverload.ResolveAndInvokeDeferred(JSCallbackArgs args)
    at Microsoft.JavaScript.NodeApi.JSValue.InvokeCallback[TDescriptor](napi_env env, napi_callback_info callbackInfo, JSValueScopeType scopeType, Func`2 getCallbackDescriptor)
    at InteropApi.callMethod (/tmp/.mount_VRCX.AhiCi3O/resources/app.asar/src-electron/InteropApi.js:25:35)
    at /tmp/.mount_VRCX.AhiCi3O/resources/app.asar/src-electron/main.js:46:23
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87037)
    at WebContents.emit (node:events:518:28)
Error occurred in handler for 'callDotNetMethod': Error: Could not find a part of the path '/home/username/.local/share/Steam/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat/config.json'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
    at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
    at VRCX.AppApi.WriteConfigFile(String json) in /mnt/d/WindowsFiles/Documents/git/VRCX/Dotnet/AppApi/Common/VrcConfigFile.cs:line 23
    at VRCX_AppApi_WriteConfigFile(Closure, JSCallbackArgs)
    at Microsoft.JavaScript.NodeApi.Interop.JSCallbackOverload.Invoke(JSCallbackOverload overload, JSCallbackArgs args)
    at Microsoft.JavaScript.NodeApi.Interop.JSCallbackOverload.ResolveAndInvokeDeferred(JSCallbackArgs args)
    at Microsoft.JavaScript.NodeApi.JSValue.InvokeCallback[TDescriptor](napi_env env, napi_callback_info callbackInfo, JSValueScopeType scopeType, Func`2 getCallbackDescriptor)
    at InteropApi.callMethod (/tmp/.mount_VRCX.AhiCi3O/resources/app.asar/src-electron/InteropApi.js:25:35)
    at /tmp/.mount_VRCX.AhiCi3O/resources/app.asar/src-electron/main.js:46:23
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87037)
    at WebContents.emit (node:events:518:28)

What version you are running
VRCX (Linux) 2025.01.31

@EpicGazel EpicGazel added the bug Something isn't working label Feb 1, 2025
@EpicGazel
Copy link
Author

Symlinking fixes this issue:
ln -s /home/username/.steam/debian-installation/steamapps /home/username/.local/share/Steam/steamapps

@EpicGazel EpicGazel changed the title [Bug] VRCX Linux can't find/set config.json [Bug] VRCX Linux can't find/set config.json and Pictures don't receive metadata Feb 1, 2025
@Natsumi-sama
Copy link
Member

Should be fixed in latest nightly.

@Natsumi-sama Natsumi-sama added the done Completed and included in next release label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working done Completed and included in next release
Projects
None yet
Development

No branches or pull requests

2 participants