Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions alc/alconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,17 +440,17 @@ void ReadALConfig()
if(auto configdir = al::getenv("XDG_CONFIG_HOME"))
{
fname = *configdir;
if(fname.back() != '/') fname += "/alsoft.conf";
else fname += "alsoft.conf";
if(fname.back() != '/') fname += "/openal/alsoft.conf";
else fname += "openal/alsoft.conf";
}
else
{
fname.clear();
if(auto homedir = al::getenv("HOME"))
{
fname = *homedir;
if(fname.back() != '/') fname += "/.config/alsoft.conf";
else fname += ".config/alsoft.conf";
if(fname.back() != '/') fname += "/.config/openal/alsoft.conf";
else fname += ".config/openal/alsoft.conf";
}
}
if(!fname.empty())
Expand Down
2 changes: 1 addition & 1 deletion alsoftrc.sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Options marked as "(global)" are not influenced by the device.
#
# The system-wide settings can be put in /etc/openal/alsoft.conf and user-
# specific override settings in $HOME/.alsoftrc.
# specific override settings in $HOME/.alsoftrc or $XDG_CONFIG_HOME/openal/alsoft.conf (~/.config/openal/alsoft.conf).
# For Windows, these settings should go into $AppData\alsoft.ini
#
# Option and block names are case-senstive. The supplied values are only hints
Expand Down
2 changes: 1 addition & 1 deletion utils/alsoft-config/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static QString getDefaultConfigName()
};
QString base = get_appdata_path();
#else
static const char fname[] = "alsoft.conf";
static const char fname[] = "openal/alsoft.conf";
QByteArray base = qgetenv("XDG_CONFIG_HOME");
if(base.isEmpty())
{
Expand Down