[Solved] UMS.config keeps doubling \s
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
-
- Posts: 5
- Joined: Mon Nov 25, 2019 12:45 pm
[Solved] UMS.config keeps doubling \s
Version 9.5.0
In adding a path in UMS.config, when I initially hit save and restart the server, it works perfectly.
However, if I quit and restart the program, suddenly nothing encoded by the encoder in that path will play. I look at the UMS.config file and see that the path keeps adding an extra \ for every one that exists.
For example, if I enter:
vlc_path = C:\Program Files\VideoLAN\VLC\vlc.exe
The next time I quit/reopen UMS, it has changed to
vlc_path = C:\\Program Files\\VideoLAN\\VLC\\vlc.exe
It does this consistently, every time I reboot UMS to test it. It does not happen when clicking "restart server."
In adding a path in UMS.config, when I initially hit save and restart the server, it works perfectly.
However, if I quit and restart the program, suddenly nothing encoded by the encoder in that path will play. I look at the UMS.config file and see that the path keeps adding an extra \ for every one that exists.
For example, if I enter:
vlc_path = C:\Program Files\VideoLAN\VLC\vlc.exe
The next time I quit/reopen UMS, it has changed to
vlc_path = C:\\Program Files\\VideoLAN\\VLC\\vlc.exe
It does this consistently, every time I reboot UMS to test it. It does not happen when clicking "restart server."
Re: UMS.config keeps doubling \s
the \\ is correct, it's a Java thing where it interprets \ as a special character for escape codes
If you actually need the single \ the code is \\
If you actually need the single \ the code is \\
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Re: UMS.config keeps doubling \s
To avoid this whole confusion, use "/" instead of "\" in paths in the configuration. UMS will handle both, but there's no such "special handling" tied to "/".