jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: Reveal in Finder (PC) "/" vs "\"

Open pbeens opened this issue 6 months ago • 0 comments

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:

  1. Go to Thread menu
  2. Click on 'Revel in Finder'
  3. 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 2024-01-04-jan ai json-error

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.

pbeens avatar Jan 04 '24 21:01 pbeens