Set data path via command line switch

Bug #1012628 reported by Samuel Findlay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Committed
Wishlist
Tomas Groth

Bug Description

Data path can now be changed via GUI. It could be useful if the data path could be set via a command line switch. This would allow different shortcuts to run openlp with different data sets. Could also be useful for testing environments.

e.g.
$ openlp -dp "D:\worship\openlp data"
$ openlp --data-path "D:\worship\openlp data"

Related branches

Changed in openlp:
importance: Undecided → Wishlist
Revision history for this message
Jonathan Corwin (j-corwin) wrote :

"-" options should really only be single character. Will probably be best just to implement the long form.

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

Yes, the standard form of command line arguments (and the one that the argument parser that OpenLP uses) is a single letter for the short form, and words-separated-by-dashes for the long form.

Changed in openlp:
status: New → Confirmed
Revision history for this message
Jonathan Corwin (j-corwin) wrote :

I think we should also consider allowing the settings path to be changed on the command line. On Windows this would then use the ini file instead of the registry, like the portable version does but without the restriction as to where the ini file is located.

 C:\> openlp --settings-file "D:\worship\openlp\settings.ini"

Phill (phill-ridout)
Changed in openlp:
assignee: nobody → Tomas Groth (tomasgroth)
milestone: none → 2.9.1
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.