Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/util/qdesktopservices_x11.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    7272        return true;
    7373
    74     if (X11->desktopEnvironment == DE_GNOME && launch(url, QLatin1String("gnome-open"))) {
     74    // Use the X11->desktopEnvironment value if X11 is non-NULL,
     75    //  otherwise just attempt to launch command regardless of the desktop environment
     76    if ((!X11 || (X11 && X11->desktopEnvironment == DE_GNOME)) && launch(url, QLatin1String("gnome-open"))) {
    7577        return true;
    7678    } else {
    77         if (X11->desktopEnvironment == DE_KDE && launch(url, QLatin1String("kfmclient exec")))
     79        if ( && launch(url, QLatin1String("kfmclient exec")))
    7880            return true;
    7981    }
     
    105107        return true;
    106108
    107     if (X11->desktopEnvironment == DE_GNOME && launch(url, QLatin1String("gnome-open"))) {
     109    // Use the X11->desktopEnvironment value if X11 is non-NULL,
     110    //  otherwise just attempt to launch command regardless of the desktop environment
     111    if ((!X11 || (X11 && X11->desktopEnvironment == DE_GNOME)) && launch(url, QLatin1String("gnome-open"))) {
    108112        return true;
    109113    } else {
    110         if (X11->desktopEnvironment == DE_KDE && launch(url, QLatin1String("kfmclient openURL")))
     114        if ( && launch(url, QLatin1String("kfmclient openURL")))
    111115            return true;
    112116    }
Note: See TracChangeset for help on using the changeset viewer.