 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

1st June 2012, 10:35 PM
|
 |
Registered User
|
|
Join Date: Jan 2007
Location: Lawrenceville, Georgia
Posts: 352

|
|
Permanently removing certain folders from my home
I am trying to permanently delete the following folders in my home directory; Downloads, Documents, Music, Videos, Pictures, Public & Templates. I'll delte all 7 of them, then remove reference to them in the user-dirs.dirs file under .config. I can then close and reopen Nautilus and they are gone as they should be. However when I logout and back in again viola they reappear! How do I get rid of them. I have these folders on different filesystems/Logical Volumes in some cases different Volume Groups in my system.
I had tried editing user-dirs.dirs so each one pointed to the equivalent VG/LV/folders, but my mount points are not named the same way. My Downloads equivalent is /pub/dnlds/, as a result the title under computer in the left payne shows up as dnlds and not Downloads. I had even tried symbolic links from actual folder to the corresponding folder in /home, with no luck.
I am running Fedora 17 (the released version) with both Cinnamon and Gnome Shell. Both give me the same results. (I realize that Cinnamon is essentially Gnome Shell with extensions that cause it to behave differently).
__________________
Hey, I was born confused, what's your excuse?!?!?! :D
AMD Phenom II 965 64 X4, MSI 890FXA-GD70 8 GB (4x2GB) 1600 DDR3 RAM Corsair, Video = AMD HD5770 w/1GB VRAM, SATAIII SSD 1 = 256GB, SATAIII 2 = 600GB, SATAII 3 = 1.0TB, SATAII 4 = 1.0TB, SATAIII 5 = 1.0TB, SATA 7 = ASUS DVD/CD, Corsair HX850W, CoolMaster ATCS840 OS = Fedora 18
|

2nd June 2012, 12:10 AM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Ohio
Posts: 44

|
|
|
Have you tried setting up the mounts in /etc/fstab? That's what I do. For example:
/pub/dnlds /home/<username>/Downloads none bind
Sorry if it looks messed up. I'm on my phone.
Sent from my ADR6300 using Tapatalk 2
__________________
:C "Anybody who tells me I can't use a program because it's not open source, go suck on rms. I'm not interested. 99% of that I run tends to be open source, but that's _my_ choice, dammit." -- Linus Torvalds, 2004.
|

2nd June 2012, 12:20 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449

|
|
|
Re: Permanently removing certain folders from my home
Does this make sense? (see this reference)
http://freedesktop.org/wiki/Software/xdg-user-dirs
Maybe you go into /etc/xdg/user-dirs.conf
and set this:
then you can do what you want to those directories
A possibly better way is to make a new file in ~/.config/user-dirs.conf
so you're doing the change only per-user and just put the one line in there:
so you're only affecting your personal account and not the whole system
Last edited by marko; 2nd June 2012 at 12:24 AM.
|

2nd June 2012, 01:20 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 241

|
|
|
Re: Permanently removing certain folders from my home
I have been doing it differently , commenting out the directories
that I was not interested in having ---
/etc/xdg/user-dir.defaults
but I like your way better.
thanks
Last edited by oystercatcher; 2nd June 2012 at 01:38 AM.
|

2nd June 2012, 01:46 AM
|
 |
Registered User
|
|
Join Date: Jan 2007
Location: Lawrenceville, Georgia
Posts: 352

|
|
|
Re: Permanently removing certain folders from my home
Marko, thanks that sounds like that is what I was looking for. I will try it later and let you know how it works.
Mario, that did it. I just put the enable=False statement in ~/.config/user-dirs.conf and it worked like a champ. Thanks again.
__________________
Hey, I was born confused, what's your excuse?!?!?! :D
AMD Phenom II 965 64 X4, MSI 890FXA-GD70 8 GB (4x2GB) 1600 DDR3 RAM Corsair, Video = AMD HD5770 w/1GB VRAM, SATAIII SSD 1 = 256GB, SATAIII 2 = 600GB, SATAII 3 = 1.0TB, SATAII 4 = 1.0TB, SATAIII 5 = 1.0TB, SATA 7 = ASUS DVD/CD, Corsair HX850W, CoolMaster ATCS840 OS = Fedora 18
Last edited by Bad2theBone; 2nd June 2012 at 03:42 AM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:36 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|