Skip to content

Automatically open a pre-configured project file when QGIS starts #5

@batpad

Description

@batpad

Context

Breaking out of @geohacker's comment here -

We will create a project file with all the layers and configuration we need, and then have QGIS automatically load the project file on startup.

Proposal

The cleanest way is to probably write a startup script that QGIS will execute on startup: https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/intro.html#running-python-code-when-qgis-starts

In this script, we can handle opening of a project file.

Questions:

  • Should we add the project file to this repository and have it built as part of this image? OR
  • Should we manage the project file separately and have it at some URL that gets pulled in at build time? OR
  • Should the project file live at a URL and get pulled in at run-time?

Anyways, we'll start off just making sure the startup script works to open a project file, and then we can figure details.

cc @yuvipanda @geohacker

Updates and actions

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions