QGIS-Documentation icon indicating copy to clipboard operation
QGIS-Documentation copied to clipboard

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

Open qgis-bot opened this issue 2 years ago • 1 comments

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]

qgis-bot avatar Apr 14 '23 15:04 qgis-bot

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

Gustry avatar Aug 21 '23 11:08 Gustry