summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
# ---------------------------