Skip to content

Commit

Permalink
Initialize Config early on Case-Sensitive OS
Browse files Browse the repository at this point in the history
* Use the native application name for the config folder versus the camel-case name defined later
* Fixes #4835
  • Loading branch information
droidmonkey committed Jun 11, 2020
1 parent c68f487 commit 30b00af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ Application::Application(int& argc, char** argv)
#if defined(Q_OS_UNIX)
registerUnixSignals();
#endif
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
// On case-sensitive Operating Systems, initialize Config early to use
// the native application name instead of the camel-case name defined later
Q_UNUSED(config());
#endif

QString userName = qgetenv("USER");
if (userName.isEmpty()) {
Expand Down

0 comments on commit 30b00af

Please sign in to comment.