Is this needed?

Yes.

What are the downsides of reloading projects?

Also does reloading a project have useful semantics that this would block, I'm not sure?

Nothing useful. It creates lots of popups and destroys undo history. Because of the popups, it's faster to reopen a project by closing and rerunning Geany itself.

If this is desired it should be applied to UI activated opening as well, by doing this in the project open code, not socket code.

I made the change here because that is where the function to generate the popup is called. That function does not receive the new project file name, so cannot make a comparison.

When a project is opened from the menu, no warning is generated. So even if the project were prevented from being opened elsewhere, the change here would still be necessary to prevent the warning dialog from being shown.

Also technically it should be comparing realpathed absolute filenames so it won't refuse to load projects of the same name in different directories.

app->project->file_name contains the full path. The GeanyProject struct does not appear to have a real_path component.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.