g_file_query_default_handler errors when passed a directory in Win32
@sjohannes
Submitted by Johannes Sasongko Link to original bug (#606337)
Description
In Windows, g_file_query_default_handler produces an error when it is passed a directory. Similarly, g_app_info_get_default_for_type("inode/directory", ...) returns null in this case.
A noticeable consequence is that we can't launch a directory.
=====
gio.File('.').query_default_handler() Traceback (most recent call last): File "
<stdin>
", line 1, in<module>
glib.GError: No application is registered as handling this file
print gio.app_info_get_default_for_type('inode/directory', False) None =====
This is not consistent with the result in Linux, where they return an AppInfo referring to (normally) the file manager.
=====
gio.File('.').query_default_handler() <gio.unix.DesktopAppInfo at 0xb75db07c: Open Folder with Thunar>
print gio.app_info_get_default_for_type('inode/directory', False) <gio.unix.DesktopAppInfo at 0xb75db07c: Open Folder with Thunar> =====
Version: 2.22.x