~vorlon/ubuntu/saucy/gourmet/trunk

« back to all changes in this revision

Viewing changes to src/lib/gglobals.py

  • Committer: Bazaar Package Importer
  • Author(s): Rolf Leggewie
  • Date: 2009-01-12 23:03:28 UTC
  • mfrom: (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090112230328-wnuqqte22uk3981b
Tags: 0.14.3-2
Conflict with python-pysqlite >= 2.5 which when installed crashes 
gourmet at startup. (Closes: #507382) and python-sqlalchemy >= 0.5.
Both restrictions should eventually be relaxed when upstream has
made the code compatible with the newer libs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
        os.startfile(url)
321
321
    elif os.name == 'posix':
322
322
        try:
323
 
            import gnome
324
 
            gnome.url_show(url)
 
323
            if hasattr(gtk,'show_uri'):
 
324
                gtk.show_uri(gtk.gdk.Screen(),url,0L)
 
325
            else:
 
326
                import gnome
 
327
                gnome.url_show(url)
325
328
        except ImportError:
326
329
            print 'gnome libraries not available, trying builtins'
327
330
            if not ext: ext=os.path.splitext(url)