GNOME Bugzilla – Bug 763733
Crashes when running with --local-filename
Last modified: 2016-03-17 12:54:08 UTC
If you run: $ gnome-software --local-filename=<some file> it crashes inside gs_app_get_quirk. This is because app is NULL and there is no check inside this function (the others have the checks).
I think the NULL app is an existing problem that might have been exposed with a recent code change. In master I added the checks to gs_app_get|has_quirk but this doesn't resolve the actual issue (why is app NULL).
I think this should fix things: commit f6a9179f5b24d5bf59c478a925c6de95ab108611 Author: Richard Hughes <richard@hughsie.com> Date: Wed Mar 16 09:46:28 2016 +0000 Fix a crash when double clicking package files This is caused by a call to gs_shell_details_switch_to() before the filename_to_app() plugin function has run. We call gs_shell_details_switch_to() manually after completing this task so ignoring the first refresh is the right thing to do. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=763733 If you can verify then I'll get release-team acks.
Confirmed - this fixes the issue.
Pushed to gnome-3-20