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

this prevents multiple packages from conflicting over a shared icon filename
This commit is contained in:
Charles Kerr
2026-02-09 21:03:02 -06:00
committed by GitHub
parent fc266802ea
commit 582668cf08
4 changed files with 4 additions and 2 deletions

View File

@@ -226,6 +226,7 @@ set(ICON_NAME_REGEX "^([^_]+)_([^_]+)_([^_]+)_(.+)$")
foreach(ICON ${PUBLIC_ICONS})
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 "^transmission" "transmission-gtk" ICON_NAME ${ICON_NAME})
install(
FILES ${SOURCE_ICONS_DIR}/${ICON}
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!
Keywords=torrents;downloading;uploading;share;sharing;
Exec=transmission-gtk %U
Icon=transmission
Icon=transmission-gtk
Terminal=false
TryExec=transmission-gtk
Type=Application

View File

@@ -252,6 +252,7 @@ set(ICON_NAME_REGEX "^([^_]+)_([^_]+)_([^_]+)_(.+)$")
foreach(ICON ${PUBLIC_ICONS})
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 "^transmission" "transmission-qt" ICON_NAME ${ICON_NAME})
install(
FILES ${SOURCE_ICONS_DIR}/${ICON}
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!
Keywords=torrents;downloading;uploading;share;sharing;
Exec=transmission-qt %U
Icon=transmission
Icon=transmission-qt
Terminal=false
Type=Application
MimeType=application/x-bittorrent;x-scheme-handler/magnet;