--- config.py.orig 2010-10-08 18:39:38.405000001 +0800 +++ config.py 2010-10-08 18:39:13.914000000 +0800 @@ -4,6 +4,7 @@ import sys import os import gtk +import glib def get_module_path(): if hasattr(sys, "frozen"): @@ -30,7 +31,7 @@ if os.access(MODULE_PATH, os.W_OK): return "%s/download" % MODULE_PATH else: - return os.path.expanduser("~/music") + return glib.get_user_special_dir(2) # default config CONFIG = { @@ -59,7 +60,7 @@ CONFIG_PATHS = [ "%s/gmbox.cfg" % MODULE_PATH, - os.path.expanduser("~/.gmbox.cfg") + os.path.join(glib.get_user_config_dir(), "gmbox.cfg") ] def load_config_file():