! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
XDG template dir pointed to $HOME not working
Status:
RESOLVED: WORKSFORME

Comments

Description Max C P 2009-04-29 23:29:34 CEST
What happens and how to reproduce it:
As Thunar seems to search for templates recursively, selecting the home-folder as template-directory seems to mess up in a never ending search (maybe it even follows symbolic links?).

Why its important:
Some linux-distributions leave it to the user to define the standard directories in their '~/.config/user-dirs.dirs'-file. 

How I found it:
After having changed the file myown (running fedora 10) an update caused this error by automatically resetting the file to some default-values, where the template-directory was set to $HOME. Selecting 'File'-> 'create document' caused a freeze of the whole xsession (in my case the mouse-pointer was not moveable any more).

regards
    Max
Comment 1 Rickard 2011-01-28 11:42:44 CET
I can confirm this bug.
Comment 2 Rickard 2011-01-28 11:43:37 CET
(In reply to comment #1)
> I can confirm this bug.

That is in the newest release of Thunar 1.2.0
Comment 3 Jannis Pohlmann editbugs 2011-01-29 16:48:10 CET
This is a configuration issue. The template directory should never point to something like $HOME. If it does and this is set so by your distribution, please file a bug with them.
Comment 4 Jannis Pohlmann editbugs 2011-01-29 16:49:06 CET
You may disagree but I'm marking this bug as wontfix.
Comment 5 Max C P 2011-01-30 17:31:36 CET
i do disagree, because there seems to be an easy solution: there is no reason to preload the contents of the whole folder, including subfolders. it would be perfectly enough to show the contents of the currently selected folder.
Comment 6 Jannis Pohlmann editbugs 2011-01-30 19:08:18 CET
Loading submenus on demand, yes, that is an improvement that might make sense. But even then, using $HOME as template dir is entirely wrong configuration.
Comment 7 Max C P 2011-01-31 19:33:57 CET
i don't think it's a wrong configuration: The xdg-specification says "To disable a directory, point it to the homedir", as found here
  http://freedesktop.org/wiki/Software/xdg-user-dirs 
consequently xdg-user-dir always returns $HOME by default, rather than returning EINVAL or ENOENT.
Comment 8 Jannis Pohlmann editbugs 2011-01-31 19:46:10 CET
Ok, so if it points to $HOME, Thunar should disable templates. If it doesn't then I acknowledge it is a bug. ;)
Comment 9 Max C P 2011-01-31 20:08:23 CET
...oh yeah! ;-)
Comment 10 Nick Schermer editbugs 2012-09-26 21:41:34 CEST
If XDG_TEMPLATES_DIR="$HOME" templates are not show.

Bug #5316

Reported by:
Max C P
Reported on: 2009-04-29
Last modified on: 2012-09-26

People

Assignee:
Jannis Pohlmann
CC List:
3 users

Version

Attachments

Additional information