Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[App] Do not instantiate dummy QCoreApplication object (fixes #3714) #2491

Closed
wants to merge 1 commit into from

Conversation

SebDieBln
Copy link
Contributor

This PR separates the instantiation of the QgsApplication object and the call to QgsApplication.init() thereby allowing to do the instantiation earlier in the initialization process and removing the need for a dummy QCoreApplication object.
By doing this all commandline arguments relevant for QApplication (e.g. -reverse) are hidden from QGIS and no warnings about unknown arguments layers are produced.

I am not a QApplication specialist, so could someone please verify that this does not have any unwanted side effects?

@SebDieBln SebDieBln changed the title Do not instantiate dummy QCoreApplication object (fixes #3714) [App] Do not instantiate dummy QCoreApplication object (fixes #3714) Nov 21, 2015
@SebDieBln
Copy link
Contributor Author

@m-kuhn I added the doxymentation and since the rebase somehow kicked your comment out of the thread I just give you this hint.

@m-kuhn
Copy link
Member

m-kuhn commented Nov 22, 2015

@wonder-sk assigning you as the original author of https://hub.qgis.org/issues/3714

@SebDieBln
Copy link
Contributor Author

@wonder-sk
I resolved the conflicts introduced by 91f3005 and rebased on master. If there is anything else I can do to help you review and merge this PR, please let me know.

SebDieBln referenced this pull request Jan 16, 2016
New variables for:
- @qgis_os_name: eg 'linux','windows' or 'osx'
- @qgis_platform: eg 'desktop' or 'server'
- @user_account_name: current user's operating system account name
- @user_full_name: current user's name from os account (if available)

Sponsored by Andreas Neumann
@SebDieBln
Copy link
Contributor Author

Agreed with @wonder-sk to postpone this PR until QGIS 3.0, where the whole startup process will be reviewed.

@SebDieBln
Copy link
Contributor Author

@wonder-sk I would like to close this PR. You don't need it as a reminder, do you?

@SebDieBln
Copy link
Contributor Author

Closing this PR because it will be solved in QGIS 3.0 in a different way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants