LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-21-2015, 12:25 AM   #1
genogebot
Member
 
Registered: Jun 2010
Location: Brisbane, Australia
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146

Rep: Reputation: 20
Thunar niggle with home folders on network server


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 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 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:
XDG_TEMPLATES_DIR="$HOME/Templates"
to
Code:
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, 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?
 
Old 06-21-2015, 09:22 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Perhaps you only need to update the time stamp of ~/.config/user-dirs.dirs upon first login with the touch command.
 
Old 06-22-2015, 06:09 PM   #3
genogebot
Member
 
Registered: Jun 2010
Location: Brisbane, Australia
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by sag47 View Post
Perhaps you only need to update the time stamp of ~/.config/user-dirs.dirs upon first login with the touch command.
Thanks for the quick response. Wouldn't the time stamp be updated by the script that modifies the user-dirs.dirs file at each login?
 
Old 06-23-2015, 07:01 AM   #4
genogebot
Member
 
Registered: Jun 2010
Location: Brisbane, Australia
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146

Original Poster
Rep: Reputation: 20
It seems to be a bug in the Thunar code: http://forum.xfce.org/viewtopic.php?pid=37872#p37872
 
Old 06-24-2015, 07:10 AM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
Originally Posted by genogebot View Post
Thanks for the quick response. Wouldn't the time stamp be updated by the script that modifies the user-dirs.dirs file at each login?
Yes, that's what I'm saying. Rather than edit just update the time stamp without editing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount storage partition folders to home folders skykooler Linux - Newbie 4 10-07-2010 10:56 PM
Unable to share folders with Mac mini and Macbook on a home network with ubuntu 8.04 smcaro Linux - Newbie 4 11-24-2008 09:34 PM
A thunar, rox, ... like that tells the list of size of each folders ... frenchn00b Linux - Software 1 06-10-2008 10:11 AM
Access Windows users network home folders from web AwakenLie Linux - Server 5 01-27-2008 11:47 AM
Thunar, aterm, etc. launching into random folder vs. home directory kryptobs2000 Linux - Software 2 10-30-2007 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration