Skip to content

Commit

Permalink
Fixed config file name with empty XDG_CURRENT_DESKTOP
Browse files Browse the repository at this point in the history
Previously, it started with dash.

See lxqt/libfm-qt#766 for a similar fix.
  • Loading branch information
tsujan committed Apr 3, 2022
1 parent 82da192 commit ae967f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtxdg/xdgdefaultapps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static QString qtxdgConfigFilename()
// first find the DE's qtxdg.conf file
QByteArray qtxdgConfig("qtxdg");
QList<QByteArray> desktopsList = qgetenv("XDG_CURRENT_DESKTOP").toLower().split(':');
if (!desktopsList.isEmpty()) {
if (!desktopsList.isEmpty() && !desktopsList.at(0).isEmpty()) {
qtxdgConfig = desktopsList.at(0) + '-' + qtxdgConfig;
}

Expand Down

0 comments on commit ae967f4

Please sign in to comment.