From dcf08c3d8960d18e3943645b58732f9c27a10ec0 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sun, 11 Feb 2024 23:57:48 -0700 Subject: Change the message a bit when running wtr.so directly. --- src/harness_adapter.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/harness_adapter.c') diff --git a/src/harness_adapter.c b/src/harness_adapter.c index 6ae8c66..3223251 100644 --- a/src/harness_adapter.c +++ b/src/harness_adapter.c @@ -12,13 +12,14 @@ const char *plugin_name = "Wetterhorn"; void plugin_load(int argc, char **argv) { hs_init(&argc, &argv); } void plugin_teardown(opqst_t st) { hs_exit(); } -const char msg[] = - "Wetterhorn Plugin v 0.01\n" - " This is a mere shared object file, meant to be a plugin for the " - "Wetterhorn" - " Compositor. To use this, please run 'wtr_harness -p [this_file]' to" - " use this plugin.\n"; -const int msg_sz = sizeof(msg); +static const char msg[] = + "Wetterhorn Plugin v 0.01\n\n" + "Welcome, and thank you for your interest.\n\n" + "This is merely a plugin to the Wetterhorn Compositor and not meant to be\n" + "executed as a standalone binary. This plugin requires a harness to run\n" + "To use this file, please use './wtr_harness [full-path-to-wtr.so]'\n" + "That will allow you to see how this compositor works in all its glory!\n"; +static const int msg_sz = sizeof(msg); __attribute__((naked)) void _start() { -- cgit