Skip to content

nemo-places-sidebar: fetch free-space info asynchronously (#3764) - #3831

Open
leigh123linux wants to merge 1 commit into
linuxmint:masterfrom
leigh123linux:mtp_freeze
Open

nemo-places-sidebar: fetch free-space info asynchronously (#3764)#3831
leigh123linux wants to merge 1 commit into
linuxmint:masterfrom
leigh123linux:mtp_freeze

Conversation

@leigh123linux

Copy link
Copy Markdown
Member

Free-space info for Home, File System, mounted volumes, and bookmarks
was fetched with a single blocking GIO call per row from
update_places() on the main thread. A gvfs mount that never answers
(e.g. an Android phone connected with "No data transfer") froze the
whole sidebar - and with it, every open Nemo window - indefinitely.

Rows are now added with no free-space info, and an async
g_file_query_filesystem_info_async() call fills it in later if the
backend answers before the row is gone. No thread or timeout is
needed: the async call never blocks regardless of whether or when
the mount responds. Bookmarks pointing into a mount are covered the
same way, since they were exposed to the same hang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant