aboutsummaryrefslogtreecommitdiff
path: root/src/text_file_functions.cpp
diff options
context:
space:
mode:
authorLeifa <26681464+TrickyLeifa@users.noreply.github.com>2024-07-06 18:05:48 +0200
committerGitHub <noreply@github.com>2024-07-06 18:05:48 +0200
commit03025119c4a7316e83f5336756d3afc9d1ff82b1 (patch)
tree72661dd1ec0c1149e3fcf5641bc92c14cd2fae71 /src/text_file_functions.cpp
parenta1e13f62fd47f09dc973e7c36987e161ecb19cdf (diff)
Improve OS detection and add APPIMAGE support to pathing code (#1003)
* Added get_app_path, tweaked pathing to adjust itself for Linux, ... * Added get_app_path * This should be used instead of QCoreApplication::applicationDirPath() * Tweaked pathing to adjust itself for Linux * Append separator to base path * Moved headers where they are needed. (Dunno why they were here.) * Proper pathing for AppImage
Diffstat (limited to 'src/text_file_functions.cpp')
-rw-r--r--src/text_file_functions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp
index 418de47c..35efe20c 100644
--- a/src/text_file_functions.cpp
+++ b/src/text_file_functions.cpp
@@ -133,7 +133,7 @@ bool AOApplication::append_to_file(QString p_text, QString p_file, bool make_dir
QMultiMap<QString, QString> AOApplication::load_demo_logs_list() const
{
- QString l_log_path = applicationDirPath() + "/logs/";
+ QString l_log_path = get_app_path() + "/logs/";
QDir l_log_folder(l_log_path);
l_log_folder.setFilter(QDir::NoDotAndDotDot | QDir::Dirs);