fix use different icon filenames per-client (#8281)

this prevents multiple packages from conflicting over a shared icon filename
This commit is contained in:
Charles Kerr
2026-02-05 22:57:38 -06:00
committed by GitHub
parent 5320fc1a49
commit a8072d82f0
4 changed files with 4 additions and 2 deletions

View File

@@ -226,6 +226,7 @@ set(ICON_NAME_REGEX "^([^_]+)_([^_]+)_([^_]+)_(.+)$")
foreach(ICON ${PUBLIC_ICONS}) foreach(ICON ${PUBLIC_ICONS})
string(REGEX REPLACE ${ICON_NAME_REGEX} "\\1/\\3/\\2" ICON_DIR ${ICON}) string(REGEX REPLACE ${ICON_NAME_REGEX} "\\1/\\3/\\2" ICON_DIR ${ICON})
string(REGEX REPLACE ${ICON_NAME_REGEX} "\\4" ICON_NAME ${ICON}) string(REGEX REPLACE ${ICON_NAME_REGEX} "\\4" ICON_NAME ${ICON})
string(REGEX REPLACE "^transmission" "transmission-gtk" ICON_NAME ${ICON_NAME})
install( install(
FILES ${SOURCE_ICONS_DIR}/${ICON} FILES ${SOURCE_ICONS_DIR}/${ICON}
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/${ICON_DIR}/ DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/${ICON_DIR}/

View File

@@ -5,7 +5,7 @@ Comment=Download and share files over BitTorrent
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! # Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=torrents;downloading;uploading;share;sharing; Keywords=torrents;downloading;uploading;share;sharing;
Exec=transmission-gtk %U Exec=transmission-gtk %U
Icon=transmission Icon=transmission-gtk
Terminal=false Terminal=false
TryExec=transmission-gtk TryExec=transmission-gtk
Type=Application Type=Application

View File

@@ -271,6 +271,7 @@ set(ICON_NAME_REGEX "^([^_]+)_([^_]+)_([^_]+)_(.+)$")
foreach(ICON ${PUBLIC_ICONS}) foreach(ICON ${PUBLIC_ICONS})
string(REGEX REPLACE ${ICON_NAME_REGEX} "\\1/\\3/\\2" ICON_DIR ${ICON}) string(REGEX REPLACE ${ICON_NAME_REGEX} "\\1/\\3/\\2" ICON_DIR ${ICON})
string(REGEX REPLACE ${ICON_NAME_REGEX} "\\4" ICON_NAME ${ICON}) string(REGEX REPLACE ${ICON_NAME_REGEX} "\\4" ICON_NAME ${ICON})
string(REGEX REPLACE "^transmission" "transmission-qt" ICON_NAME ${ICON_NAME})
install( install(
FILES ${SOURCE_ICONS_DIR}/${ICON} FILES ${SOURCE_ICONS_DIR}/${ICON}
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/${ICON_DIR}/ DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/${ICON_DIR}/

View File

@@ -5,7 +5,7 @@ Comment=Download and share files over BitTorrent
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! # Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=torrents;downloading;uploading;share;sharing; Keywords=torrents;downloading;uploading;share;sharing;
Exec=transmission-qt %U Exec=transmission-qt %U
Icon=transmission Icon=transmission-qt
Terminal=false Terminal=false
Type=Application Type=Application
MimeType=application/x-bittorrent;x-scheme-handler/magnet; MimeType=application/x-bittorrent;x-scheme-handler/magnet;