Skip to content

[Q] Why use -c option for loading config in launch scripts? #22

@Apaczer

Description

@Apaczer

I assumed it was to replace default path&name of standard gmu.conf, so when running through one of launch scripts e.g.: gmu-pandora.sh we would end up using always gmu.pandora.conf for read/write.
However instead the script only performs read on that custom conf, and all the settings are reseted on next run - nothing never changes as such when running through script. My small remedy:

if ! test -e firstrun; then
    ./gmu.bin -c gmu.pandora.conf
    touch firstrun
else
    ./gmu.bin
fi

Maybe all scripts should be updated this way or perhaps I should use an -d option in a script such way:

mv gmu.pandora.conf gmu.conf
./gmu.bin -d $(pwd)

@jhe2 How do you aproach this for less possible end-user confusion when shiping distribution pkg?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions