1.1 --- a/desktop/__init__.py Thu Sep 06 00:28:27 2012 +0200
1.2 +++ b/desktop/__init__.py Sun Jan 05 00:00:46 2014 +0100
1.3 @@ -6,8 +6,8 @@
1.4 detection and resource opening support for a selection of common and
1.5 standardised desktop environments.
1.6
1.7 -Copyright (C) 2005, 2006, 2007, 2008, 2009, 2012 Paul Boddie <paul@boddie.org.uk>
1.8 -Copyright (C) 2012 Jérôme Laheurte <fraca7@free.fr>
1.9 +Copyright (C) 2005, 2006, 2007, 2008, 2009, 2012, 2013 Paul Boddie <paul@boddie.org.uk>
1.10 +Copyright (C) 2012, 2013 Jérôme Laheurte <fraca7@free.fr>
1.11
1.12 This program is free software; you can redistribute it and/or modify it under
1.13 the terms of the GNU Lesser General Public License as published by the Free
1.14 @@ -75,7 +75,7 @@
1.15 The desktop.windows module permits the inspection of desktop windows.
1.16 """
1.17
1.18 -__version__ = "0.4.1"
1.19 +__version__ = "0.4.2"
1.20
1.21 import os
1.22 import sys
1.23 @@ -278,7 +278,12 @@
1.24 cmd = ["gnome-open", url]
1.25
1.26 elif desktop_in_use == "XFCE":
1.27 - cmd = ["exo-open", url]
1.28 + # exo-open 0.10 cannot parse the mailto: URL scheme if there is no
1.29 + # recipient
1.30 + if url.lower().startswith('mailto:'):
1.31 + cmd = ["exo-open", "--launch", "MailReader", url]
1.32 + else:
1.33 + cmd = ["exo-open", url]
1.34
1.35 elif desktop_in_use == "Mac OS X":
1.36 cmd = ["open", url]