Bug report #19732

starting qgis-bin.exe with command line options shows message e.g. invalid layer --profiles-name

Added by Stefan Overkamp over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Build/Install
Affected QGIS version:3.2.2 Regression?:No
Operating System:Windows 7 Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:27557

Description

starting qgis-bin.exe with command line option (e.g. --profiles-path) raises critical messages:
Layer ist ungültig : Der Layer D:\einstellungen\default ist kein gültiger Layer und kann nicht zur Karte hinzugefügt. Grund:
Layer ist ungültig : Der Layer D:\einstellungen\--profiles-name ist kein gültiger Layer und kann nicht zur Karte hinzugefügt. Grund:

start "QGIS" /B P:\qgis\v3\bin\qgis-bin.exe --profiles-path "D:\einstellungen\QGIS3" --profiles-name "default" %*

History

#1 Updated by Giovanni Manghi over 5 years ago

  • Status changed from Open to Feedback

"%*" is for?

#2 Updated by Giovanni Manghi over 5 years ago

  • Category changed from GUI to Build/Install

#3 Updated by Giovanni Manghi over 5 years ago

Did it worked as expected on 2.18?

#4 Updated by Jürgen Fischer over 5 years ago

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

Stefan Overkamp wrote:

starting qgis-bin.exe with command line option (e.g. --profiles-path) raises critical messages:
Layer ist ungültig : Der Layer D:\einstellungen\default ist kein gültiger Layer und kann nicht zur Karte hinzugefügt. Grund:
Layer ist ungültig : Der Layer D:\einstellungen\--profiles-name ist kein gültiger Layer und kann nicht zur Karte hinzugefügt. Grund:

start "QGIS" /B P:\qgis\v3\bin\qgis-bin.exe --profiles-path "D:\einstellungen\QGIS3" --profiles-name "default" %*

--profiles-name does not exists - it's called --profile.

#5 Updated by Jürgen Fischer over 5 years ago

Giovanni Manghi wrote:

"%*" is for?

The arguments the batch file was called with (see for instance https://ss64.com/nt/syntax-args.html)

Also available in: Atom PDF