Skip to content

Commit

Permalink
Always set working dir to executable location
Browse files Browse the repository at this point in the history
  • Loading branch information
Morilli committed Oct 3, 2023
1 parent 336632a commit 0974e3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QFontDatabase>
Expand Down Expand Up @@ -27,6 +28,7 @@ int main(int argc, char *argv[]) {
app.setOrganizationName("moonshadow565");
app.setOrganizationDomain("cslol");
app.setApplicationName("customskinlol-manager");
QDir::setCurrent(QCoreApplication::applicationDirPath());
QSettings::setPath(QSettings::Format::IniFormat,
QSettings::Scope::SystemScope,
QCoreApplication::applicationDirPath());
Expand Down

0 comments on commit 0974e3a

Please sign in to comment.