Skip to content
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

Make paths relative to application directory #1

Open
probonopd opened this issue May 12, 2019 · 1 comment
Open

Make paths relative to application directory #1

probonopd opened this issue May 12, 2019 · 1 comment

Comments

@probonopd
Copy link

probonopd commented May 12, 2019

I am trying to produce an AppImage for avrdude-qt-gui and I am struggling with the fact that paths are hardcoded:

dudePath = settingsIni->value("dudePath", "/usr/bin/avrdude").toString();
xmlsPath = settingsIni->value("xmlsPath", "/usr/share/avrxmls").toString(); // FIXME check avrstudio default installation path
sqlitePath = settingsIni->value("sqlitePath", "/usr/share/qavrdude/devicedb.sqlite").toString();

needs to be made relative to QCoreApplication::applicationDirPath().

http://doc.qt.io/qt-5/qcoreapplication.html#applicationDirPath

References:

@martonmiklos
Copy link
Owner

martonmiklos commented May 14, 2019

Hey,

Feel free to fix and PR and I will accept it.

To be honest, there are a lot of tweaks which needs to be done on the tool itself. I do not remember if I have even tested it with the SQLite backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants