Changeset 9005
- Timestamp:
- 11/17/07 16:03:02 (13 months ago)
- Location:
- trunk/src
- Files:
-
- 6 modified
-
common/config.py (modified) (1 diff)
-
common/helpers.py (modified) (2 diffs)
-
common/optparser.py (modified) (2 diffs)
-
config.py (modified) (3 diffs)
-
gajim.py (modified) (2 diffs)
-
gtkgui_helpers.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common/config.py
r8972 r9005 54 54 if sys.platform == 'darwin': 55 55 DEFAULT_OPENWITH = 'open' 56 DEFAULT_BROWSER = 'open -a firefox'57 DEFAULT_MAILAPP = 'open -a thunderbird'58 DEFAULT_FILE_MANAGER = 'open '56 DEFAULT_BROWSER = 'open -a Safari' 57 DEFAULT_MAILAPP = 'open -a Mail' 58 DEFAULT_FILE_MANAGER = 'open -a Finder' 59 59 else: 60 60 DEFAULT_OPENWITH = 'gnome-open' -
trunk/src/common/helpers.py
r8972 r9005 430 430 elif gajim.config.get('openwith') == 'exo-open': 431 431 command = 'exo-open' 432 elif ((sys.platform == 'darwin') and 433 (gajim.config.get('openwith') == 'open')): 434 command = 'open' 432 435 elif gajim.config.get('openwith') == 'custom': 433 436 if kind == 'url': … … 457 460 elif gajim.config.get('openwith') == 'exo-open': 458 461 command = 'exo-open' 462 elif ((sys.platform == 'darwin') and 463 (gajim.config.get('openwith') == 'open')): 464 command = 'open' 459 465 elif gajim.config.get('openwith') == 'custom': 460 466 command = gajim.config.get('custom_file_manager') -
trunk/src/common/optparser.py
r8931 r9005 64 64 #we talk about a file 65 65 print _('error: cannot open %s for reading') % self.__filename 66 return 66 return False 67 67 68 68 new_version = gajim.config.get('version') … … 81 81 82 82 fd.close() 83 return True 83 84 84 85 def write_line(self, fd, opt, parents, value): -
trunk/src/config.py
r8972 r9005 400 400 401 401 if sys.platform == 'darwin': 402 self.applications_combobox.remove_text(4) 402 403 self.applications_combobox.remove_text(3) 403 404 self.applications_combobox.remove_text(2) 404 405 self.applications_combobox.remove_text(1) 406 self.applications_combobox.append_text("Always use OS/X default applications") 407 self.applications_combobox.append_text("Custom") 405 408 406 409 if gajim.config.get('autodetect_browser_mailer'): … … 413 416 self.applications_combobox.set_active(2) 414 417 elif gajim.config.get('openwith') == 'exo-open': 415 self.applications_combobox.set_active(3) 418 self.applications_combobox.set_active(3) 419 elif ((sys.platform == 'darwin') and 420 (gajim.config.get('openwith') == 'open')): 421 self.applications_combobox.set_active(1) 416 422 elif gajim.config.get('openwith') == 'custom': 417 423 if sys.platform == 'darwin': 418 self.applications_combobox.set_active( 1)424 self.applications_combobox.set_active(2) 419 425 else: 420 426 self.applications_combobox.set_active(4) … … 913 919 self.xml.get_widget('custom_apps_frame').hide() 914 920 elif widget.get_active() == 1: 921 self.xml.get_widget('custom_apps_frame').hide() 922 gajim.config.set('openwith', 'open') 923 elif widget.get_active() == 2: 915 924 self.xml.get_widget('custom_apps_frame').show() 916 925 gajim.config.set('openwith', 'custom') -
trunk/src/gajim.py
r8993 r9005 2586 2586 } 2587 2587 2588 parser.read()2588 cfg_was_read = parser.read() 2589 2589 # Do not set gajim.verbose to False if -v option was given 2590 2590 if gajim.config.get('verbose'): … … 2630 2630 theme[d.index(o)]) 2631 2631 2632 if gajim.config.get('autodetect_browser_mailer') or \ 2633 len(gajim.connections) == 0: 2632 if gajim.config.get('autodetect_browser_mailer') or not cfg_was_read: 2634 2633 gtkgui_helpers.autodetect_browser_mailer() 2635 2634 -
trunk/src/gtkgui_helpers.py
r8927 r9005 187 187 elif user_runs_xfce(): 188 188 gajim.config.set('openwith', 'exo-open') 189 elif user_runs_osx(): 190 gajim.config.set('openwith', 'open') 189 191 else: 190 192 gajim.config.set('openwith', 'custom') … … 201 203 return True 202 204 return False 205 206 def user_runs_osx(): 207 return sys.platform == 'darwin' 203 208 204 209 def get_running_processes():
