Crash when quitting Settings
Created by: bagage
-Lollypop version: compiled from current master -Gtk Version: 3.22 -Linux distribution: Debian stretch
-Describe your bug here:
On my setup, XDG directory DIRECTORY_MUSIC is not set which lead to a crash when closing settings at this with the following stacktrace:
Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/lollypop/settings.py", line 615, in __edit_settings_close if main_uri != GLib.filename_to_uri(default) or choosers: TypeError: Argument 0 does not allow None as a value
Most obvious fix would be to add a first
if default is not None but I don't know what would be the consequences (if any).