~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to app/main.cpp

  • Committer: Package Import Robot
  • Author(s): Lisandro Damián Nicanor Pérez Meyer, Pino Toscano, Sune Vuorela, Lisandro Damián Nicanor Pérez Meyer
  • Date: 2015-09-02 21:10:24 UTC
  • mfrom: (1.3.24)
  • Revision ID: package-import@ubuntu.com-20150902211024-ntruxcyb574f3xuk
Tags: 4:4.7.1-1
* Team upload.

[ Pino Toscano ]
* Change section of kdevelop-dev to libdevel.
* Add ${misc:Depends} in kdevelop-dbg and kdevelop-l10n.

[ Sune Vuorela ]
* Make KDevelop recommend kapptemplate to have more meaningful project
  templates available.

[ Lisandro Damián Nicanor Pérez Meyer ]
* New upstream release.
  - Bump kdevplatform-dev build dependency to 1.7.1.
* Remove kde-workspace from build dependencies. We no longer provide
  a KDE 4 based workspace.
  - Add libsoprano-dev as a build dependency, it was probably previously
    pulled in by kde-workspace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
#include "welcomepage/welcomepageview.h"
67
67
#include "splash.h"
68
68
 
 
69
#ifdef Q_OS_MAC
 
70
#include <CoreFoundation/CoreFoundation.h>
 
71
#endif
 
72
 
69
73
using KDevelop::Core;
70
74
 
71
75
// Represents a file to be opened, consisting of its URL and the linenumber to jump to
179
183
 
180
184
int main( int argc, char *argv[] )
181
185
{
 
186
#ifdef Q_OS_MAC
 
187
    CFBundleRef mainBundle = CFBundleGetMainBundle();
 
188
    if (mainBundle) {
 
189
        // get the application's Info Dictionary. For app bundles this would live in the bundle's Info.plist,
 
190
        // for regular executables it is obtained in another way.
 
191
        CFMutableDictionaryRef infoDict = (CFMutableDictionaryRef) CFBundleGetInfoDictionary(mainBundle);
 
192
        if (infoDict) {
 
193
            // Try to prevent App Nap on OS X. This can be tricky in practice, at least in 10.9 .
 
194
            CFDictionarySetValue(infoDict, CFSTR("NSAppSleepDisabled"), kCFBooleanTrue);
 
195
            CFDictionarySetValue(infoDict, CFSTR("NSSupportsAutomaticTermination"), kCFBooleanFalse);
 
196
        }
 
197
    }
 
198
#endif
 
199
 
182
200
    static const char description[] = I18N_NOOP( "The KDevelop Integrated Development Environment" );
183
201
    KAboutData aboutData( "kdevelop", 0, ki18n( "KDevelop" ), QByteArray(VERSION), ki18n(description), KAboutData::License_GPL,
184
202
                          ki18n( "Copyright 1999-2014, The KDevelop developers" ), KLocalizedString(), "http://www.kdevelop.org/" );