zsiki / GeoEasy

land surveying calculation, network adjustment, digital terrain models, regression calculation
http://digikom.hu/english/geo_easy_e.html
GNU General Public License v2.0
73 stars 34 forks source link

Cannot open .geo file through the windows file association #188

Closed MrClock8163 closed 1 year ago

MrClock8163 commented 1 year ago

When trying to open a .geo file directly from the windows file explorer, GeoEasy cannot open the file if the path contains any whitespaces. The file path received from the shell seems to be split up at every whitespace character, and the programs attempts to load each part individually. This is inconsistent with the regular Load function of the File menu, where such spaces cause no issues.

Eg. path D:\Test_folder\folder with space\testgeo.geo

Through the file association: image image image

Through the File menu: image

OS: Windows 10 GeoEasy version: 3.2.1

I would speculate that the issue may be caused by the ability to load multiple files at once through the file browser from the File menu of the main window.

zsiki commented 1 year ago

New binary development version is available on http://digikom.hu/english/geo_easy_e.html. Please test it.

MrClock8163 commented 1 year ago

I tested the new version, and the file association works without issue. The only inconsistency now is that the log window does not show the file was opened. But I guess this is not really a big deal. image

I ran into another bug though, concerning the saving of parameters. Should I open a new issue for that?

zvezdochiot commented 1 year ago

@MrClock8163 say:

I ran into another bug though, concerning the saving of parameters. Should I open a new issue for that?

Necessarily. (commits with fixes are tied to issues)

MrClock8163 commented 1 year ago

I understand that. The reason I asked is because the issue only arises when trying to save the parameters after opening a file through the file association. But very well, I will open a new issue then.