1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-29 15:19:44 +02:00

Rename freedesktop and metainfo files to reverse DNS schema

Based on the suggestion made by Mart Raudsepp.

"Regular installs should have reverse DNS notation desktop and
metainfo files as well. This becomes important if we ever make use
of things like dbus service activation further down the line. And
renaming it then will break peoples app shortcuts and other things."

Signed-off-by: Leon Marz <main@lmarz.org>
Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
Helped-by: Mart Raudsepp <leio@gentoo.org>
Reference-to: https://github.com/tenacityteam/tenacity/pull/642
This commit is contained in:
lmarz 2021-09-27 07:49:51 +02:00 committed by GitHub
parent e776c2f7e4
commit 198d49b773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 9 deletions

View File

@ -51,8 +51,8 @@ if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" )
if( NOT WIN32)
install( DIRECTORY "${dst}" OPTIONAL
DESTINATION "${_DATADIR}/tenacity/help" )
install( FILES "${_SRCDIR}/tenacity.metainfo.xml"
install( FILES "${_SRCDIR}/org.tenacityaudio.Tenacity.metainfo.xml"
DESTINATION "${_DATADIR}/metainfo" )
endif()
endif()
@ -64,7 +64,7 @@ cmake_dependent_option(BUILD_MANPAGE "Build manpage" ON "NOT SCDOC_CMD STREQUAL
if( BUILD_MANPAGE )
add_custom_command( COMMENT "Generating manpage"
COMMAND ${SCDOC_CMD} < "${_SRCDIR}/tenacity.1.scd" > "${CMAKE_BINARY_DIR}/help/tenacity.1"
COMMAND ${SCDOC_CMD} < "${_SRCDIR}/tenacity.1.scd" > "${CMAKE_BINARY_DIR}/help/tenacity.1"
DEPENDS "${_SRCDIR}/tenacity.1.scd"
OUTPUT "${CMAKE_BINARY_DIR}/help/tenacity.1" )

View File

@ -6,7 +6,6 @@
"command": "tenacity",
"rename-desktop-file": "tenacity.desktop",
"rename-icon": "tenacity",
"rename-appdata-file": "tenacity.metainfo.xml",
"finish-args": [
"--share=ipc",
"--socket=x11",
@ -189,7 +188,7 @@
"-DWX_CONFIG=/app/bin/wx-config"
],
"post-install": [
"install -Dm644 ../help/tenacity.metainfo.xml -t /app/share/metainfo",
"install -Dm644 ../help/org.tenacityaudio.Tenacity.metainfo.xml -t /app/share/metainfo",
"install -d /app/extensions/Plugins"
],
"cleanup": [
@ -209,7 +208,7 @@
{
"type": "shell",
"commands": [
"sed -e '43i <release version=\"master\" date=\"2021-08-12\"/>' -i help/tenacity.metainfo.xml"
"sed -e '43i <release version=\"master\" date=\"2021-08-12\"/>' -i help/org.tenacityaudio.Tenacity.metainfo.xml"
]
}
]

View File

@ -1263,7 +1263,7 @@ else()
endif()
# Create the desktop file
configure_file( tenacity.desktop.in ${_INTDIR}/tenacity.desktop )
configure_file( org.tenacityaudio.Tenacity.desktop.in ${_INTDIR}/org.tenacityaudio.Tenacity.desktop )
# Copy the required wxWidgets libs into the bundle
add_custom_command(
@ -1369,7 +1369,7 @@ else()
PATTERN "*.so*"
)
install(
FILES "${_INTDIR}/tenacity.desktop"
FILES "${_INTDIR}/org.tenacityaudio.Tenacity.desktop"
DESTINATION "${_DATADIR}/applications"
)
install(
@ -1377,7 +1377,7 @@ else()
DESTINATION "${_DATADIR}/doc/${AUDACITY_NAME}"
)
install(
FILES "${_SRCDIR}/tenacity.xml"
FILES "${_SRCDIR}/org.tenacityaudio.Tenacity.xml"
DESTINATION "${_DATADIR}/mime/packages"
)
install(