Do not use the absolute path to the workspace for the rich presence: rpc.detailsEditing
HTGAzureX1212 opened this issue ยท 5 comments
HTGAzureX1212 commented
I only wanted to show the name of my workspace, instead of the entire path to the workspace. Is there a way to configure it like this?
HTGAzureX1212 commented
I dug further into the source code:
https://github.com/LeonardSSH/coc-discord-rpc/blob/main/src/structures/Activity.ts#L37
I guess it didn't work as in the directories on Windows are actually backslashes: \
instead of the regular slash: /
. The source only splits on regular slashes but not backslashes.
HTGAzureX1212 commented
@leonardssh any plans to fix this, as in: checking the current platform and split on \
if it's Windows, and /
if its not Windows?
leonardssh commented
HTGAzureX1212 commented
Thank you ๐
HTGAzureX1212 commented
I have updated to version 4.0.0
and it is fixed. Thank you!