diff -rNaud Thunar-1.8.1/thunar/thunar-icon-factory.c Thunar-1.8.1-NEW/thunar/thunar-icon-factory.c --- Thunar-1.8.1/thunar/thunar-icon-factory.c 2018-06-12 03:47:24.000000000 +0200 +++ Thunar-1.8.1-NEW/thunar/thunar-icon-factory.c 2018-08-03 14:19:18.523020404 +0200 @@ -820,7 +820,8 @@ const gchar *icon_name; const gchar *custom_icon; ThunarIconStore *store; - + const gchar *path_folder_icon; + _thunar_return_val_if_fail (THUNAR_IS_ICON_FACTORY (factory), NULL); _thunar_return_val_if_fail (THUNAR_IS_FILE (file), NULL); _thunar_return_val_if_fail (icon_size > 0, NULL); @@ -836,8 +837,17 @@ return g_object_ref (store->icon); } - /* check if we have a custom icon for this file */ + /* check if we have a custom icon for this file */ custom_icon = thunar_file_get_custom_icon (file); + + + /* check if we have a "folder" icon for this file */ + if (thunar_file_is_directory (file) && custom_icon == NULL) { + path_folder_icon = g_strconcat (g_file_get_path (thunar_file_get_file (file)), "/", "folder.jpg", NULL); + if ( g_file_test(path_folder_icon, G_FILE_TEST_EXISTS)) + custom_icon = path_folder_icon; + } + if (custom_icon != NULL) { /* try to load the icon */