Error 

Ubuntu User Directories

686 views
Posted August 2, 2009 at 08:08pm in Linux with tags ,

I discovered that if you delete directories in your home directory like Templates and other system folders it will make an undesirable change to ~/.config/user-dirs.dirs changing the location of variables to $HOME/, which means if you want to add the directory back you have to edit the file.

This file defines the locations for Desktop, Music, Templates, etc so I went ahead and moved those files to Dropbox so I can maintain the files across multiple machines.

While I’m on the topic of these directories, I want to mention the awesomeness that is the Templates directory. If you add the file “Python Script.py” to that directory and put in the following text:

#!/usr/bin/python2.5
#
# Copyright 2009

import sys

# Enter text here

You can then right click in a directory, go to “Create Document” you will see “Python Script” listed and if you select it a .py file will be created with the previous text in it. This directory lets you create templates for anything you want and easily use it to create documents.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • Twitter


Leave a Reply