-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a command-line option to use a different resource file #2425
Comments
We may want to take this a step further and in addition to the proposal, do something similar to the data/plugin search paths and default it to a NON- |
@tresf Could you elaborate a bit further on this? |
@midi-pascal this will explain it a bit more: // If we're in development (lmms is not installed) let's get the source
// directory by reading the CMake Cache
QFile cmakeCache(qApp->applicationDirPath() + "/CMakeCache.txt");
if (cmakeCache.exists()) {
cmakeCache.open(QFile::ReadOnly);
QTextStream stream(&cmakeCache);
// Find the line containing something like lmms_SOURCE_DIR:static=<dir>
while(! stream.atEnd())
{
QString line = stream.readLine();
if (line.startsWith("lmms_SOURCE_DIR:")) {
QString srcDir = line.section('=', -1).trimmed();
QDir::addSearchPath("data", srcDir + "/data/");
break;
}
}
cmakeCache.close();
} The idea is to do something similar for the |
@tresf Ok, now I see what you mean. |
@midi-pascal I think so although I'd like to hear opinions from other developers too. |
👍
@midi-pascal Almost missed these other issues. I'd make an issue for them together or just fix them and make a pull request directly. |
@zonkmachine Ok then, working on all these right now 😄 |
@zonkmachine The |
I think that's a good idea actually. Now it looks a bit like a typo. |
@zonkmachine I totally agree with you. A PR for all this issue is almost ready. I am testing all the command-line options to be sure I did not break anything.
|
When using various versions of Lmms on the same box you need different lmmsrc.xml files.
The goal is to implement a new command-line parameter to specify the resource file to use.
The default will stay, well, the default ~.lmmsrc.xml file but the command line -c or --config allow to overwrite it.
Also:
1- In master branch the --help is missing some already existing options:
--geometry
--import
--profile
2- There is a bug in --profile option: it takes
profilerOutputFile
fromargv[1]
instead ofargv[i]
3- Could it be more clean to display the options in alphabetical order in lmms --help?
I can fix these in the same issue or open separate ones for each.
The text was updated successfully, but these errors were encountered: