Commit 69b9d0be authored by Alessandro Astone's avatar Alessandro Astone Committed by Alexander Lohnau
Browse files

KF5PlasmaMacros: Actually install desktop files if they exist

The cmake EXISTS operation can only work on absolute paths

Fixes commit 6e53dcc2
parent 014537b0
Pipeline #95816 passed with stage
in 1 minute and 26 seconds
......@@ -36,7 +36,8 @@ macro(plasma_install_package dir component)
kpackage_install_package(${dir} ${component} ${root} ${PLASMA_RELATIVE_DATA_INSTALL_DIR} NO_DEPRECATED_WARNING)
# TODO KF6 Remove
if (EXISTS ${dir}/metadata.desktop)
get_filename_component(metadata_desktop_file_absolute_path ${dir}/metadata.desktop REALPATH)
if (EXISTS ${metadata_desktop_file_absolute_path})
install(FILES ${dir}/metadata.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} RENAME plasma-${type}-${component}.desktop)
endif()
endmacro()
......@@ -71,7 +72,8 @@ macro(plasma_install_bundled_package dir component)
kpackage_install_bundled_package(${dir} ${component} ${root} ${PLASMA_RELATIVE_DATA_INSTALL_DIR})
# TODO KF6 Remove
if (EXISTS ${dir}/metadata.desktop)
get_filename_component(metadata_desktop_file_absolute_path ${dir}/metadata.desktop REALPATH)
if (EXISTS ${metadata_desktop_file_absolute_path})
install(FILES ${dir}/metadata.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} RENAME plasma-${type}-${component}.desktop)
endif()
endmacro()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment