mirror of
https://github.com/transmission/transmission.git
synced 2026-02-15 07:26:49 +00:00
fix use different icon filenames per-client (#8281)
this prevents multiple packages from conflicting over a shared icon filename
This commit is contained in:
@@ -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}/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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}/
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user