Storage - crashes when some XDG user directories removed
gnome-usage crashes when accessing Storage tab if some home directories were removed via XDG user directories config.
How to reproduce:
I change them this way
nano ~/.config/user-dirs.dirs
and comment for example:
#XDG_VIDEOS_DIR="$HOME/Videos"
to make changes permanent across logout:
echo "enabled=false" > ~/.config/user-dirs.conf
Logout and see that in Nautilus sidebar 'Videos' link dissapear
Launch gnome-usage and choose Storage tab - it crashes
I have this messages in logs via sudo journalctl /usr/bin/gnome-usage
deb gnome-usage[3295]: Cannot add an object of type GtkLabel to a container of type UsageSpeedometer
deb gnome-usage[3295]: Cannot add an object of type GtkLabel to a container of type UsageSpeedometer
deb gnome-usage[3295]: g_file_new_for_path: assertion 'path != NULL' failed
deb gnome-usage[3295]: usage_storage_worker_construct: assertion 'path != NULL' failed
deb gnome-usage[3295]: g_async_queue_push_unlocked: assertion 'data' failed
deb gnome-usage[3295]: usage_storage_analyzer_get_size_of_directory: assertion 'path != NULL' failed
Edited by Ghost User