summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Dapena Paz <jose.dapena@lge.com>2018-05-04 15:39:19 +0200
committerJose Dapena Paz <jose.dapena@lge.com>2018-05-04 15:39:19 +0200
commitc2cf2b7ce09e2283c5e75b39072d68d75477a1a2 (patch)
treeb35d59e2167a76b17c11ca8eb7006a10d2dfdfb7
parent7a6d373adbca65e4e740d00560a0b5f196b9e02c (diff)
Add local runxdg script that invokes system script.
Just adding directly the system path for runxdg does not work as wgt installer was trying to find it in the package filesystem. So add a wrapper script that forwards to the main runxdg script.
-rw-r--r--CMakeLists.txt8
-rw-r--r--conf.d/cmake/config.cmake2
2 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e608543..9bc11c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,3 +26,11 @@ add_custom_command(OUTPUT ${PROJECT_PKG_BUILD_DIR}/runxdg.toml
add_custom_target(runxdg_toml DEPENDS ${PROJECT_PKG_BUILD_DIR}/runxdg.toml)
add_dependencies(widget runxdg_toml)
+
+add_custom_command(OUTPUT ${PACKAGE_BINDIR}/runxdg
+ COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/runxdg.sh ${PACKAGE_BINDIR}/runxdg
+ COMMAND chmod +x ${PACKAGE_BINDIR}/runxdg
+)
+
+add_custom_target(runxdg_script DEPENDS ${PACKAGE_BINDIR}/runxdg)
+add_dependencies(widget runxdg_script)
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index 275fe16..0a841d6 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -154,7 +154,7 @@ set(WIDGET_TYPE application/vnd.agl.native)
# This is the file that will be executed, loaded,
# at launch time by the application framework.
#
-set(WIDGET_ENTRY_POINT /usr/bin/runxdg)
+set(WIDGET_ENTRY_POINT bin/runxdg)
# Optional dependencies order
# ---------------------------