# HG changeset patch # User paulb # Date 1131729516 0 # Node ID e3f62d8ab8d4e04480420184721f451beb7c5592 # Parent 4243322049e3a611810805be0e188604fa54e92e [project @ 2005-11-11 17:18:36 by paulb] Changed the waiting behaviour back to the module's original behaviour. Updated release information. diff -r 4243322049e3 -r e3f62d8ab8d4 PKG-INFO --- a/PKG-INFO Fri Nov 11 12:27:40 2005 +0000 +++ b/PKG-INFO Fri Nov 11 17:18:36 2005 +0000 @@ -1,12 +1,12 @@ Metadata-Version: 1.1 Name: desktop -Version: 0.1 +Version: 0.2 Author: Paul Boddie Author-email: paul at boddie org uk Maintainer: Paul Boddie Maintainer-email: paul at boddie org uk Home-page: http://www.python.org/sf?id=1301512 -Download-url: http://www.boddie.org.uk/python/downloads/desktop-0.1.tar.gz +Download-url: http://www.boddie.org.uk/python/downloads/desktop-0.2.tar.gz Summary: Simple desktop integration for Python License: Academic Free License version 2.1 Description: This module provides desktop environment detection and resource diff -r 4243322049e3 -r e3f62d8ab8d4 README.txt --- a/README.txt Fri Nov 11 12:27:40 2005 +0000 +++ b/README.txt Fri Nov 11 17:18:36 2005 +0000 @@ -36,5 +36,5 @@ New in desktop 0.2 (Changes since desktop 0.1) ---------------------------------------------- - * Added waiting for launcher processes by default. + * Added support for waiting for launcher processes. * Added a tests directory. diff -r 4243322049e3 -r e3f62d8ab8d4 desktop.py --- a/desktop.py Fri Nov 11 12:27:40 2005 +0000 +++ b/desktop.py Fri Nov 11 17:18:36 2005 +0000 @@ -56,7 +56,7 @@ http://lists.freedesktop.org/archives/xdg/2004-August/004489.html """ -__version__ = "0.1" +__version__ = "0.2" import os import sys @@ -103,7 +103,7 @@ os.waitpid(pid, os.P_WAIT) return pid -def open(url, desktop=None, wait=1): +def open(url, desktop=None, wait=0): """ Open the 'url' in the current desktop's preferred file browser. If the @@ -121,9 +121,9 @@ process identifier cannot be determined, None is returned. An optional 'wait' parameter is also available for advanced usage and, if - 'wait' is set to a false value, this function will not wait for the - launching mechanism to complete before returning (as opposed to waiting and - then returning, as is the default behaviour). + 'wait' is set to a true value, this function will wait for the launching + mechanism to complete before returning (as opposed to immediately returning + as is the default behaviour). """ # Attempt to detect a desktop environment.