Feature request #10310

open project on launch **relative path** option

Added by matteo ghetta almost 6 years ago. Updated almost 4 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:GUI
Pull Request or Patch supplied:No Resolution:invalid
Easy fix?:No Copied to github as #:18735

Description

The chance to open QGIS with a specific project is very handful. But using the --configpath option to store all the customizations and moving the folders created by this option, the specific project has an absolute path. This way it is not possible to directly open the project on another machine.

History

#1 Updated by Jürgen Fischer almost 6 years ago

The chance to open QGIS with a specific project is very handful. But using the --configpath option to store all the customizations and moving the folders created by this option, the specific project has an absolute path. This way it is not possible to directly open the project on another machine.

Are you mixing up configuration paths and project paths? The path in a project file can be relative to the location of the project file.
But the configuration path can't be relative. What should they be relative to?

#2 Updated by matteo ghetta almost 6 years ago

I don't think I'm mixing the paths.
If I want to "export" the directories created by the --configpath option to anther machine along with the option open project on launch, you have to specify which project (because it is referred to an absolute path). Otherwise QGIS cannot find the .qgs file.

#3 Updated by Jürgen Fischer almost 6 years ago

matteo ghetta wrote:

I don't think I'm mixing the paths.
If I want to "export" the directories created by the --configpath option to another machine along with the option open project on launch, you have to specify which project (because it is referred to an absolute path). Otherwise QGIS cannot find the .qgs file.

The configpath option and the project argument are independant. You can either specify them relative to the current working directory or absolute.

#4 Updated by Jürgen Fischer almost 6 years ago

  • Status changed from Open to Feedback

#5 Updated by matteo ghetta almost 6 years ago

sorry, but I still don't get it..
in the directories created by the --configpath option there is the QGIS2.ini file.
I think that the line:

projOpenAtLaunchPath=/home/matteo/Documents/project.qgs

refers to the open project on launch option.

So, if I copy the directory (e.g. qgisconfig), created with the --configpath option to another machine, the project won't be opened because the path of the project is of my machine.

#6 Updated by matteo ghetta almost 6 years ago

Now I get it. Paths are independent.

Thanks for the explanation

#7 Updated by Matthias Kuhn almost 4 years ago

  • Resolution set to invalid
  • Status changed from Feedback to Closed

Also available in: Atom PDF