Package sabayon :: Module config
[hide private]
[frames] | no frames]

Source Code for Module sabayon.config

  1  # 
  2  # Copyright (C) 2005 Red Hat, Inc. 
  3  # 
  4  # This program is free software; you can redistribute it and/or modify 
  5  # it under the terms of the GNU General Public License as published by 
  6  # the Free Software Foundation; either version 2 of the License, or 
  7  # (at your option) any later version. 
  8  # 
  9  # This program is distributed in the hope that it will be useful, 
 10  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
 11  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 12  # GNU General Public License for more details. 
 13  # 
 14  # You should have received a copy of the GNU General Public License 
 15  # along with this program; if not, write to the Free Software 
 16  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
 17  # 
 18  import os 
 19  import os.path 
 20   
 21  PACKAGE    = "@PACKAGE_NAME@" 
 22  VERSION    = "@PACKAGE_VERSION@" 
 23  LOCALEDIR  = "@LOCALEDIR@" 
 24  DATADIR    = "@DATADIR@" 
 25  SYSCONFDIR = "@SYSCONFDIR@" 
 26  LIBEXECDIR = "@LIBEXECDIR@" 
 27  SBINDIR    = "@SBINDIR@" 
 28   
 29  BUILDERDIR  = os.path.join (DATADIR,    "sabayon", "ui") 
 30  CONFIGDIR   = os.path.join (SYSCONFDIR, "sabayon") 
 31  PROFILESDIR = os.path.join (CONFIGDIR,  "profiles") 
 32   
 33  MONITOR_TOOL_ARGV = [ os.path.join (LIBEXECDIR, "sabayon-monitor") ] 
 34  SESSION_TOOL_ARGV = [ os.path.join (LIBEXECDIR, "sabayon-session") ] 
 35  APPLY_TOOL_ARGV   = [ os.path.join (SBINDIR,    "sabayon-apply") ] 
 36   
 37  # FIXME: this is too big a hammer 
 38  CLOBBER_USER_PROCESSES_ARGV = [ "/usr/bin/pkill", "-u" ] 
 39   
 40  # No. of seconds to wait for USR1 from Xephyr before giving up 
 41  XEPHYR_USR1_TIMEOUT = 10 
 42   
 43  # 
 44  # This is the user which we run the prototype sessions 
 45  # as. The account should be created as part of the packages 
 46  # post installation process 
 47  # 
 48  PROTOTYPE_USER = "@PROTOTYPE_USER@" 
 49   
 50  # 
 51  # default, mandatory, and mandatory-alt gconf key trees in users 
 52  # home directory. 
 53  # 
 54   
 55  GCONF_DEFAULTS_SOURCE      = ".gconf.xml.defaults" 
 56  GCONF_MANDATORY_SOURCE     = ".gconf.xml.mandatory" 
 57  GCONF_MANDATORY_ALT_SOURCE = ".gconf.xml.mandatory-alt" 
 58   
 59  GCONF_PATH_DEFAULTS        = ".gconf.path.defaults" 
 60  GCONF_PATH_MANDATORY       = ".gconf.path.mandatory" 
 61   
 62  # FIXME: should all of these be options passed to the "configure" script? 
 63  DEFAULT_PATH  = "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin" 
 64  DEFAULT_SHELL = "/bin/bash" 
 65  NOLOGIN_SHELL = "/sbin/nologin" 
 66  SKEL_HOMEDIR  = "/etc/skel" 
 67   
 68  XEPHYR_ARGV  = [ "@XEPHYR_PATH@", "-terminate", "-audit", "0", "-nolisten", "tcp", "-name", "sabayon" ] 
 69  SESSION_ARGV = [ "@XSESSION@", "@SESSION_NAME@" ] 
 70  USERMOD_ARGV = [ "/usr/sbin/usermod" ] 
 71   
 72  PANEL_KEY_BASE = "/apps/panel" 
 73  # PANEL_KEY_BASE = "/apps/panel/profiles/default" 
 74   
 75  # 
 76  # When starting the prototype session, which environment 
 77  # variables should be passed through umodified 
 78  # 
 79  PASSTHROUGH_ENVIRONMENT = [ 
 80      "SABAYON_DEBUG", 
 81      "DEBUG_WHILE_IN_SABAYON", 
 82      "LANG", 
 83      "LINGUAS", 
 84      "LC_CTYPE", 
 85      "LC_COLLATE", 
 86      "LC_TIME", 
 87      "LC_NUMERIC", 
 88      "LC_MONETARY", 
 89      "LC_MESSAGES", 
 90      "METACITY_VERBOSE", 
 91      "METACITY_USE_LOGFILE", 
 92      "PYTHONPATH" 
 93  ] 
 94   
 95  # 
 96  # Files which we don't want to see change notifications for 
 97  # 
 98  FILES_TO_IGNORE = [ 
 99      GCONF_PATH_DEFAULTS, 
100      GCONF_PATH_DEFAULTS + ".new", 
101      GCONF_PATH_MANDATORY, 
102      GCONF_PATH_MANDATORY + ".new", 
103      ".ICEauthority*", 
104      ".esd_auth", 
105      ".fonts.cache-1*", 
106      ".gnome/gnome-vfs/.trash_entry_cache", 
107      ".gnome2/share/cursor-fonts/fonts.dir", 
108      ".gnome2/share/fonts/fonts.dir", 
109      ".gtkrc-1.2-gnome2*", 
110      ".pulse-cookie", 
111      ".recently-used*", 
112      ".xsession-errors", 
113      ".imsettings.log" 
114  ] 
115   
116  # 
117  # Directories which we don't want to add when saving profile 
118  # 
119  DIRECTORIES_TO_IGNORE_PROFILE = [ 
120      ".beagle", 
121      ".cache", 
122      ".ccache", 
123      ".dbus", 
124      ".fontconfig", 
125      ".gconfd", 
126      ".gstreamer-0.8", 
127      ".gstreamer-0.10", 
128      ".gvfs", 
129      ".local/share/tracker", 
130      ".metacity/sessions", 
131      ".profile_cache", 
132      ".pulse", 
133      ".thumbnails", 
134      ".wapi", 
135      ".Trash", 
136      ".evolution/cache", 
137      ".local/share/gvfs-metadata" 
138  ] 
139   
140  # 
141  # Directories which we don't want to see change notifications for 
142  # 
143  DIRECTORIES_TO_IGNORE = DIRECTORIES_TO_IGNORE_PROFILE + [ 
144      ".gconf", 
145      GCONF_DEFAULTS_SOURCE, 
146      GCONF_MANDATORY_SOURCE, 
147      GCONF_MANDATORY_ALT_SOURCE 
148  ] 
149   
150  # 
151  # GConf keys which we don't want to see change notifications for 
152  # 
153  GCONF_KEYS_TO_IGNORE = [ 
154      "/apps/nautilus/preferences_version", 
155      "/apps/nautilus/sound_state", 
156      "/apps/panel/general/profiles_migrated" 
157      "/desktop/gnome/peripherals/keyboard/kbd.sysbackup/*", 
158  ] 
159   
160  LOG_CONFIG_FILENAME = os.path.join (CONFIGDIR, "sabayon-debug-log.conf") 
161   
162  BUG_TRACKING_SYSTEM = "http://bugzilla.gnome.org" 
163