[Xfce-bugs] [Bug 12032] Thunar fails to scan for file templates if the Templates directory is a symbolic link
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Tue Jun 30 08:16:24 CEST 2015
https://bugzilla.xfce.org/show_bug.cgi?id=12032
--- Comment #1 from enpheebled.git at gmail.com ---
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.
More information about the Xfce-bugs
mailing list