https://bugzilla.xfce.org/show_bug.cgi?id=12032

--- Comment #1 from [email protected] ---
Created attachment 6350
  --> https://bugzilla.xfce.org/attachment.cgi?id=6350&action=edit
git diff showing line to be replaced

    Fixes failure to detect file templates if ~/Templates is a symlink

    The XFCE desktop permits ~/Templates to be a symbolic link to a
    directory but Thunar's scan for template files fails if ~/Templates
    is a symbolic link.

    The problem is caused by _thunar_misc_jobs_load_templates() calling
    thunar_io_scan_directory() with the 'flags' parameter set to
    G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS. Changing the flags parameter to
    G_FILE_QUERY_INFO_NONE results in the eventual call to GIO function
    g_file_query_file_type() returning the GFileType value of the target
    of a symlink instead of the value of the symlink itself. This prevents
    thunar_io_scan_directory() from failing, and the scan for file templates
    proceeds as if ~/Templates was a directory.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Xfce-bugs mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce-bugs

Reply via email to