<SOLVED>Thunar annoyance with home folders on network server

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Pheeble
Level 3
Level 3
Posts: 116
Joined: Sun Jun 21, 2015 11:27 pm
Location: Brisbane, Australia

<SOLVED>Thunar annoyance with home folders on network server

Post by Pheeble »

Apologies in advance for the lengthy question, but I thought I'd chuck in lots of detail rather than wait until someone has to ask for it.

I'm using Thunar 1.6.3 on Linux Mint 17.1 XFCE x64 on several computers on my home network. To avoid duplication I've got some of my home folders (Documents, Downloads, Music, Pictures, Videos and Templates) on a network server that is mounted by each computer at boot time via a cifs-filetype entry in /etc/fstab as /mnt/srvr. I have a symlink in my home folder on each computer that links to the relevant folder on the server, so ~/Documents is a symlink to /mnt/srvr/documents, etc. That way if, for example, I create a new file template in one computer's Templates folder it is immediately accessible by any other computer in its own Templates folder.

I've been doing this for quite a while and it works very well except for one Thunar-related niggle. I have several file templates in the server's templates folder, and they show up without problem in the ~/Templates folder on each computer, but Thunar's 'Create Document' menu indicates 'No templates installed'. If I right-click on the XFCE desktop, however, the 'Create From Template' menu lists the templates correctly, so it seems to be a Thunar-specific problem.

I have found a workaround to get the templates to show up in the Thunar templates menu, by running a script at login that modifies the file ~/.config/user-dirs.dirs by changing the line

Code: Select all

XDG_TEMPLATES_DIR="$HOME/Templates"
to

Code: Select all

XDG_TEMPLATES_DIR="/mnt/srvr/templates"
and this works... except...

...when I do that Thunar fails to display the Templates folder with the usual folder-specific icon (it has specific icons for Documents, Downloads, etc) instead just using a generic folder icon. Yes, I know this is hardly a disaster, but over time it has increasingly irked me that I can't find a complete solution to this. Ideally I want Thunar to recognise the templates without having to do any workaround login script.

Is this just a Thunar bug? Without seeing the source for Thunar as implemented in Mint XFCE (and I couldn't find it by googling) my first guess is that Thunar's code for finding templates does not support symlinks. Or is there some Thunar templates configuration issue I'm overlooking?

And how does Thunar decide which folders get a folder-specific icon instead of the generic folder icon anyway? Presumably that breaks if the folder is non-local.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Pheeble
Level 3
Level 3
Posts: 116
Joined: Sun Jun 21, 2015 11:27 pm
Location: Brisbane, Australia

Re: Thunar annoyance with home folders on network server

Post by Pheeble »

It seems to be a bug in the Thunar code: http://forum.xfce.org/viewtopic.php?pid=37872#p37872
Locked

Return to “Xfce”