Changeset 9123 for branches/pep/src/common/config.py
- Timestamp:
- 12/12/07 09:44:46 (12 months ago)
- Files:
-
- 1 modified
-
branches/pep/src/common/config.py (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pep/src/common/config.py
r8484 r9123 1 1 ## common/config.py 2 2 ## 3 ## Copyright (C) 2003-200 6 Yann Le Boulanger <asterix@lagaule.org>3 ## Copyright (C) 2003-2007 Yann Leboulanger <asterix@lagaule.org> 4 4 ## Copyright (C) 2005-2006 Nikos Kouremenos <kourem@gmail.com> 5 5 ## Copyright (C) 2004-2005 Vincent Hanquez <tab@snarc.org> 6 6 ## Copyright (C) 2005 Dimitur Kirov <dkirov@gmail.com> 7 ## Copyright (C) 2005Travis Shirk <travis@pobox.com>8 ## Copyright (C) 2005Norman Rasmussen <norman@rasmussen.co.za>7 ## Travis Shirk <travis@pobox.com> 8 ## Norman Rasmussen <norman@rasmussen.co.za> 9 9 ## Copyright (C) 2006 Stefan Bethge <stefan@lanpartei.de> 10 10 ## Copyright (C) 2007 Julien Pivotto <roidelapluie@gmail.com> 11 ## Stephan Erb <steve-e@h3c.de> 11 12 ## 12 ## This program is free software; you can redistribute it and/or modify 13 ## This file is part of Gajim. 14 ## 15 ## Gajim is free software; you can redistribute it and/or modify 13 16 ## it under the terms of the GNU General Public License as published 14 ## by the Free Software Foundation; version 2only.17 ## by the Free Software Foundation; version 3 only. 15 18 ## 16 ## This program is distributed in the hope that it will be useful,19 ## Gajim is distributed in the hope that it will be useful, 17 20 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 18 21 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 22 ## GNU General Public License for more details. 20 23 ## 21 22 24 ## You should have received a copy of the GNU General Public License 25 ## along with Gajim. If not, see <http://www.gnu.org/licenses/>. 26 ## 27 28 29 import sys 23 30 import re 24 31 import copy … … 45 52 46 53 DEFAULT_ICONSET = 'dcraven' 54 if sys.platform == 'darwin': 55 DEFAULT_OPENWITH = 'open' 56 DEFAULT_BROWSER = 'open -a Safari' 57 DEFAULT_MAILAPP = 'open -a Mail' 58 DEFAULT_FILE_MANAGER = 'open -a Finder' 59 else: 60 DEFAULT_OPENWITH = 'gnome-open' 61 DEFAULT_BROWSER = 'firefox' 62 DEFAULT_MAILAPP = 'mozilla-thunderbird -compose' 63 DEFAULT_FILE_MANAGER = 'xffm' 47 64 48 65 __options = { … … 103 120 # 'aplay', 'play', 'esdplay', 'artsplay' detected first time only 104 121 'soundplayer': [ opt_str, '' ], 105 'openwith': [ opt_str, 'gnome-open'],106 'custombrowser': [ opt_str, 'firefox'],107 'custommailapp': [ opt_str, 'mozilla-thunderbird -compose'],108 'custom_file_manager': [ opt_str, 'xffm'],122 'openwith': [ opt_str, DEFAULT_OPENWITH ], 123 'custombrowser': [ opt_str, DEFAULT_BROWSER ], 124 'custommailapp': [ opt_str, DEFAULT_MAILAPP ], 125 'custom_file_manager': [ opt_str, DEFAULT_FILE_MANAGER ], 109 126 'gc-hpaned-position': [opt_int, 430], 110 127 'gc_refer_to_nick_char': [opt_str, ',', _('Character to add after nickname when using nick completion (tab) in group chat.')], … … 128 145 'roster_x-position': [ opt_int, 0 ], 129 146 'roster_y-position': [ opt_int, 0 ], 130 'roster_width': [ opt_int, 150 ],147 'roster_width': [ opt_int, 200 ], 131 148 'roster_height': [ opt_int, 400 ], 132 149 'latest_disco_addresses': [ opt_str, '' ], … … 137 154 'send_os_info': [ opt_bool, True ], 138 155 'set_status_msg_from_current_music_track': [ opt_bool, False ], 156 'set_status_msg_from_lastfm': [ opt_bool, False, _('If checked, Gajim can regularly poll a Last.fm account and adjust the status message to reflect recently played songs. set_status_msg_from_current_music_track option must be False.') ], 157 'lastfm_username': [ opt_str, '', _('The username used to identify the Last.fm account.')], 139 158 'notify_on_new_gmail_email': [ opt_bool, True ], 140 159 'notify_on_new_gmail_email_extra': [ opt_bool, False ], 141 'usegpg': [ opt_bool, False, '', True ],142 160 'use_gpg_agent': [ opt_bool, False ], 143 161 'change_roster_title': [ opt_bool, True, _('Add * and [n] in roster title?')], … … 176 194 'tabs_border': [opt_bool, False, _('Show tabbed notebook border in chat windows?')], 177 195 'tabs_close_button': [opt_bool, True, _('Show close button in tab?')], 196 'log_encrypted_sessions': [opt_bool, False, _('When negotiating an encrypted session, should Gajim assume you want your messages to be logged?')], 197 'e2e_public_key': [opt_bool, False, _('When negotiating an encrypted session, should Gajim prefer to use public keys for identification?')], 178 198 'chat_avatar_width': [opt_int, 52], 179 199 'chat_avatar_height': [opt_int, 52], … … 219 239 'chat_merge_consecutive_nickname': [opt_bool, False, _('In a chat, show the nickname at the beginning of a line only when it\'s not the same person talking than in previous message.')], 220 240 'chat_merge_consecutive_nickname_indent': [opt_str, ' ', _('Indentation when using merge consecutive nickname.')], 241 'use_smooth_scrolling': [opt_bool, True, _('Smooth scroll message in conversation window')], 221 242 'gc_nicknames_colors': [ opt_str, '#a34526:#c000ff:#0012ff:#388a99:#045723:#7c7c7c:#ff8a00:#94452d:#244b5a:#32645a', _('List of colors that will be used to color nicknames in group chats.'), True ], 222 243 'ctrl_tab_go_to_next_composing': [opt_bool, True, _('Ctrl-Tab go to next composing tab when none is unread.')], … … 236 257 'subscribe_activity': [opt_bool, True], 237 258 'subscribe_tune': [opt_bool, True], 259 'attach_notifications_to_systray': [opt_bool, False, _('If True, notification windows from notification-daemon will be attached to systray icon.')], 260 'use_pep': [opt_bool, False, 'temporary variable to enable pep support'], 238 261 } 239 262 … … 258 281 'proxy': [ opt_str, '', '', True ], 259 282 'keyid': [ opt_str, '', '', True ], 283 'gpg_sign_presence': [ opt_bool, True, _('If disabled, don\'t sign presences with GPG key, even if GPG is configured.') ], 260 284 'keyname': [ opt_str, '', '', True ], 261 285 'usessl': [ opt_bool, False, '', True ], 286 'ssl_fingerprint_sha1': [ opt_str, '', '', True ], 262 287 'use_srv': [ opt_bool, True, '', True ], 263 288 'use_custom_host': [ opt_bool, False, '', True ], 264 289 'custom_port': [ opt_int, 5222, '', True ], 265 290 'custom_host': [ opt_str, '', '', True ], 266 'savegpgpass': [ opt_bool, False, '', True ],267 'gpgpassword': [ opt_str, '' ],268 291 'sync_with_global_status': [ opt_bool, False, ], 269 292 'no_log_for': [ opt_str, '' ],
