fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
450 stars 10 forks source link

"Open in" button errors and customization #2214

Closed johnnyontheweb closed 2 weeks ago

johnnyontheweb commented 2 months ago

Hello, I'm trying to use Fork for some repos of mine, and I noticed that the "Open in" button has strange beahviours:

Can this button be customized? I'm asking if there's some config file to edit to correct folder errors and customize links to .sln.

thanks in advance

DanPristupov commented 2 months ago

"Open in file explorer" sometimes opens a different folder (!!!) not related to the repo

Can you reproduce this? Fork uses very simple code to open the repo folder:

var process = new Process();
process.StartInfo = new ProcessStartInfo(repositoryPath);
process.Start();

Can this button be customized? I'm asking if there's some config file to edit to correct folder errors and customize links to .sln.

You can add new items using 'Repository' Custom Commands (can be global or per-repo). You can not change the existing items' behavior.

johnnyontheweb commented 2 months ago

Can you reproduce this? Fork uses very simple code to open the repo folder:

It happens in another pc, but it opens a Dropbox folder (which has the same name but different path) instead of the one of the repo. I don't know how to reproduce it, I checked repositoryPath in the config file and it is ok.

DanPristupov commented 2 months ago

Check the log file. The log is located at %localappdata%\fork\logs\fork.log. There must be the Open in file explorer 'path' entry with the exact path.

Is there anything unusual in this path?

Try to open this path with Explorer: open Run (Win+R), enter that path and press Enter.

johnnyontheweb commented 1 month ago

The path is correct in log file, and surprisingly explorer opens in a different location even from Run. Thanks for your hints, I have no idea what's happening on this pc...

DanPristupov commented 1 month ago

The path is correct in log file, and surprisingly explorer opens in a different location even from Run.

Unbelievable. I'll let you know if anything comes to mind :).

Did you try to reboot the computer?

Giorgi commented 1 month ago

When I click on "Open SomeSolution.sln in Visual Studio" fork launches VS 2022 Preview but double clicking on the sln file in explorer launches VS 2022. Would be great to have it fixed.