mirror of
https://github.com/transmission/transmission.git
synced 2026-02-15 07:26:49 +00:00
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})
|
||||
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}/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}/
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user