Skip to content

Commit 5a7859c

Browse files
illwieckzslipher
andcommitted
Linux: Set the Updater window WMCLASS
Co-authored-by: slipher <[email protected]>
1 parent b6b8b34 commit 5a7859c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linux.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ void initApplicationName()
292292
QCoreApplication::setOrganizationName("unvanquished");
293293
QCoreApplication::setApplicationName("updater");
294294

295-
// for Wayland backend
295+
// WM_CLASS for X backend
296+
qputenv("RESOURCE_NAME", "net.unvanquished.Unvanquished");
297+
// equivalent for Wayland backend
296298
QGuiApplication::setDesktopFileName(DESKTOP_FILE_NAME);
297299
}
298300

0 commit comments

Comments
 (0)