d034633265
* test: the file chooser says when it is not the desktop's own (#10159) rfd falls back to zenity in silence when the XDG portal is not there, and the user gets a foreign window with no explanation. The host must be able to say so. RED: the test fails with 'without a D-Bus session bus the file chooser is not the desktop's own: the user has to be told'. * fix: say when the file chooser is not the desktop's own (#10159) rfd opens the file chooser through the XDG desktop portal; without the portal it falls back to zenity, a window that does not belong to the app, and the app never says so. The user gets a foreign window and no explanation. The host now asks the session bus, on a thread of its own, whether the portal is there, and keeps the answer. When a file is opened and the chooser is not the desktop's own, the reason goes to the session log (Help > Messages), which is where a user looks for it. * fix: the file chooser messages read as notices, not assertions (#10159) The maintainer asked for two things on the pull request: the strings of the pending catalogue read like a test assertion ("the user has to be told...") rather than a notice a person would see, and the doc comment above desktop_chooser_fallback was there twice. The three reasons are now plain messages, in every locale of the file: they say what the chooser is and why, and stop there. The doc comment of the function is now the only one, and it says what it did.