ports/editors/diamond/files/patch-src_json.cpp
Adriaan de Groot b071a62b5e editors:diamond: new port, CopperSpice-based editor
This needs patching to consider the installed location
(e.g. share/) as a source of data, rather than the installed
location of the binary.
2022-02-20 16:45:30 +01:00

11 lines
396 B
C++

--- src/json.cpp.orig 2022-02-20 12:59:53 UTC
+++ src/json.cpp
@@ -36,7 +36,7 @@ bool MainWindow::json_Read(Config trail)
{
bool ok = true;
- m_appPath = QCoreApplication::applicationDirPath();
+ m_appPath = DIAMOND_SHARE_DIR; // QCoreApplication::applicationDirPath();
QSettings settings("Diamond Editor", "Settings");
m_jsonFname = settings.value("configName").toString();