jan
jan copied to clipboard
bug: Reveal in Finder (PC) "/" vs "\"
Describe the bug When you click on "Reveal in Finder" for a thread, the path name is not correct on PCs. Example: C:\Users\Peter\jan/threads/jan_1704400975
Steps to reproduce Steps to reproduce the behavior:
- Go to Thread menu
- Click on 'Revel in Finder'
- Error: Windows cannot find 'C:\Users\Peter\jan/threads/jan_1704400975'. Make sure you typed the name correctly, and then try again.
Expected behavior The Windows file manager should open.
Screenshots
Environment details Device name XPS-8950 Processor 12th Gen Intel(R) Core(TM) i7-12700 2.10 GHz Installed RAM 64.0 GB (63.7 GB usable) System type 64-bit operating system, x64-based processor Edition Windows 11 Home Version 22H2 Installed on 2023-04-05 OS build 22621.2861 Experience Windows Feature Experience Pack 1000.22681.1000.0
Additional context This should be a simple fix by detecting if the program is being run on a PC or Mac/Linux and changing the path separator.