Skip to content

Commit c36c24b

Browse files
committed
chore: update icon installation to follow freedesktop standards
Updated the CMakeLists.txt file to install application icons according to freedesktop.org standards. Instead of installing all SVG files to a custom location, the changes now install specific icon files to standardized system directories: the scalable icon to /usr/ share/icons/hicolor/scalable/apps and the 32px icon to /usr/share/ icons/hicolor/32x32/apps with proper renaming. This improves desktop integration and ensures icons display correctly across different desktop environments. Also removed the generic icon installation line that was installing all SVG files to a non-standard location. Influence: 1. Verify that application icons appear correctly in system application launchers 2. Test icon display at different sizes (scalable and 32x32 versions) 3. Check desktop file integration with the new icon paths 4. Ensure application still launches properly after icon changes 5. Test on different desktop environments to confirm cross-platform compatibility chore: 更新图标安装以遵循 freedesktop 标准 更新了 CMakeLists.txt 文件,按照 freedesktop.org 标准安装应用程序图标。 不再将所有 SVG 文件安装到自定义位置,而是将特定图标文件安装到标准化的系 统目录:可缩放图标安装到 /usr/share/icons/hicolor/scalable/apps,32px 图 标安装到 /usr/share/icons/hicolor/32x32/apps 并正确重命名。这改善了桌面 集成,确保图标在不同桌面环境中正确显示。同时移除了将全部 SVG 文件安装到 非标准位置的通用图标安装行。 Influence: 1. 验证应用程序图标在系统应用启动器中是否正确显示 2. 测试不同尺寸的图标显示(可缩放和 32x32 版本) 3. 检查桌面文件与新图标路径的集成 4. 确保图标更改后应用程序仍能正常启动 5. 在不同桌面环境中测试以确认跨平台兼容性
1 parent d80d22c commit c36c24b

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

assets/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ install(FILES ${TOOL_FILES} DESTINATION ${TOOL_INSTALL_PATH})
3333
# install configure files.
3434
file(GLOB SUPPORTFILES "${CMAKE_CURRENT_SOURCE_DIR}/configures/*.support")
3535
file(GLOB DESKTOPFILES "${CMAKE_CURRENT_SOURCE_DIR}/configures/*.desktop")
36-
file(GLOB ICON "${CMAKE_CURRENT_SOURCE_DIR}/configures/*.svg")
36+
37+
# Icon installation according to freedesktop.org standards
38+
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/configures/ide.svg"
39+
DESTINATION "/usr/share/icons/hicolor/scalable/apps")
40+
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/configures/ide_32px.svg"
41+
DESTINATION "/usr/share/icons/hicolor/32x32/apps"
42+
RENAME "ide.svg")
3743

3844
install(FILES ${SUPPORTFILES} DESTINATION "${SOURCES_INSTALL_RPEFIX}/configures")
39-
install(FILES ${DESKTOPFILES} DESTINATION "/usr/share/applications")
40-
install(FILES ${ICON} DESTINATION "${SOURCES_INSTALL_RPEFIX}/configures/icons")
45+
install(FILES ${DESKTOPFILES} DESTINATION "/usr/share/applications")
-41.5 KB
Loading
6.2 KB
Loading

0 commit comments

Comments
 (0)