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

[API] Defined QgsApplication::applicationFullName() and use it in Postgres and Server (Request in QGIS) #8168

Open
qgis-bot opened this issue Apr 14, 2023 · 2 comments
Labels
3.30 QGIS 3.30 new features Server QGIS Server related
Milestone

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#51470
Author: @rldhont
QGIS version: 3.30

[API] Defined QgsApplication::applicationFullName() and use it in Postgres and Server

PR Description:

the QgsApplication::applicationFullName() static method returns the QGIS application full name.

It can be defined by the environment variable QGIS_APPLICATION_FULL_NAME or the /qgis/application_full_name
in the QGIS config file.

By default it is equal to QgsApplication::applicationName()+' '+QgsApplication::platform()

Using QgsApplication::applicationFullName for PostgreSQL application_name.

For QGIS Server defining QGIS_SERVER_APPLICATION_NAME variable. The QGIS_SERVER_APPLICATION_NAME variable can be used instead of QGIS_APPLICATION_FULL_NAME.

For QGIS Server Logger using QGIS Server application name by default log tag.

Funded by 3liz https://3liz.com

Commits tagged with [need-docs] or [FEATURE]

@Gustry
Copy link
Contributor

Gustry commented Aug 21, 2023

The server part is done in PR #8460

I'm not sure about the desktop side ? There are some many configs available in the INI file ( QGIS desktop → General QGIS properties → Advanced → I will be careful I promise)

For desktop, there isn't for now a table showing all environment variables in https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#command-line-and-environment-variables similar to the one for QGIS server https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables

@DelazJ
Copy link
Collaborator

DelazJ commented Jan 15, 2025

For desktop, there isn't for now a table showing all environment variables in https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#command-line-and-environment-variables similar to the one for QGIS server https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables

We can consider adding one there but it needs someone pointing us to the place they are mentioned in code repo and their details (meaning, default value, scope,...) Or a way to generate the list. Otherwise I don't see how further we can go with this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.30 QGIS 3.30 new features Server QGIS Server related
Projects
None yet
Development

No branches or pull requests

4 participants