I'm not convinced the patch is correct; you're incorrectly looking for the "nautilus" .desktop file, when we install one specifically for browsing folders (namely nautilus-folder-handler.desktop, which uses the commandline nautilus --no-desktop %U). Ideally we'd just set_as_default_for_type that specific entry, by looking it up by id (the "Name" field of the desktop entry file; "Open Folder").
This also looks a bit bogus to me:
+ g_warning("inode/directory points to '%s' - fixing", g_app_info_get_executable(app), "nautilus");
I'm not convinced the patch is correct; you're incorrectly looking for the "nautilus" .desktop file, when we install one specifically for browsing folders (namely nautilus- folder- handler. desktop, which uses the commandline nautilus --no-desktop %U). Ideally we'd just set_as_ default_ for_type that specific entry, by looking it up by id (the "Name" field of the desktop entry file; "Open Folder").
This also looks a bit bogus to me: "inode/ directory points to '%s' - fixing", g_app_info_ get_executable( app), "nautilus");
+ g_warning(