Files
Andrew Rabert a8d0f47dc5 Use DATA_NAME for Qt applicationName on Linux
Consolidates APP_NAME into DATA_NAME and removes redundant MainName().
Ensures Qt's QStandardPaths (cache, config dirs) match our Paths code,
fixing duplicate cache directories on Linux.
2025-12-26 17:45:32 -05:00

19 lines
498 B
CMake

set(MAIN_TARGET JellyfinDesktop)
# Output binary name
set(MAIN_NAME jellyfin-desktop)
# Data directory name - also used for QCoreApplication::applicationName
# which determines QStandardPaths (cache, config, data dirs)
set(DATA_NAME jellyfin-desktop)
if(APPLE)
set(MAIN_NAME "Jellyfin Desktop")
set(DATA_NAME "Jellyfin Desktop")
elseif(WIN32)
set(MAIN_NAME "Jellyfin Desktop")
set(DATA_NAME "Jellyfin Desktop")
endif()
configure_file(src/shared/Names.cpp.in src/shared/Names.cpp @ONLY)