Hi, I did the change and it seems to work. I reproduced the "recent file list" problem and the "old" inkscape dies, while the new one does not, but prints a warning message.
I only modified resource-manager.cpp and I am attaching a "diff -c" file relative to the two versions of resource-manager.cpp. It is the first time that I contribute some code to inkscape, so if I need to follow a different procedure, please let me know.
Riccardo -- Riccardo Bernardini Tel : +39-0432-55-8271 skype : bernardini.riccardo LinkedIn : https://www.linkedin.com/in/riccardobernardini ________________________________________ Da: Martin Owens [doctormo@...400...] Inviato: martedì 29 settembre 2015 23.59 A: suv-sf@...58... Cc: Riccardo Bernardini; Inkscape Devel List Oggetto: Re: [Inkscape-devel] Strange bug related to "recent file" list
On Tue, 2015-09-29 at 23:01 +0200, su_v wrote:
Would it suffice to catch the exception Glib::ConvertError: threw by
filename_from_url() at resource-manager.cpp:225, so that the offending entry is skipped and not appended to priorLocations (maybe with some warning output)? If yes, I could try doing the minimal change and submit it.
To Riccardo:
This is a good plan. I would be happy to review the code for you.
Martin,