Pigpog / vlc-discord-rpc

Discord rich presence for VLC media player.
MIT License
207 stars 30 forks source link

VLC install path treated as unicode #26

Closed dylhack closed 5 years ago

dylhack commented 5 years ago

Details

OS: Windows 10 (64-bit) Node: 12.4.0 NPM: 6.9.0 vlc-discord-rpc: 2.2.0

Notes

System language: French

------------------------------------
An error occurred when launching VLC
------------------------------------
Error: spawn C:Program FilesVideoLANVLClc.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:9) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn C:Program FilesVideoLANVLC\u000blc.exe',
  path: 'C:Program FilesVideoLANVLC\u000blc.exe',
  spawnargs: [
    '--extraintf',
    'http',
    '--http-host',
    'localhost',
    '--http-password',
    'khp0t539',
    '--http-port',
    9090
  ]
}
dylhack commented 5 years ago

Here is a temporary resolution for this issue. Replace config.js in the config folder with this code.

dylhack commented 5 years ago

Will be fixed in 2.3.