milgra / wcp

Script-driven control panel/system menu for wayland-based window managers.
GNU General Public License v3.0
84 stars 3 forks source link

WCP fails to launch: "ERROR No HTML description" #11

Open dslm4515 opened 8 months ago

dslm4515 commented 8 months ago

I just built kuid and wcp. I also had to build jq as the wcp-template.sh script calls for it.

wcp wont launch in sway. I am using the example script and config files from this repo:

Check out this repository. Copy the res folder under ~/.config/wcp If you use debian or void linux, copy wcp-debian.sh or wcp-void.sh to ~/.config/wcp/wcp.sh If you use something else copy wcp-template.sh under ~/.config/wcp/wcp.sh and edit it to use utilities from your configuration. Finally execute ~/.config/wcp.sh in your autostart script.

Since I am not using Debian or Void (my system is a derivative of LFS), I chose to use the wcp-template.sh... and modified it according to what my system has. I made sure to add the following to my sway config:

exec rm -f /tmp/wcp && mkfifo /tmp/wcp && tail -f /tmp/wcp | wcp
bindsym $mod+p exec "echo 2 > /tmp/wcp"

To make sure I had no typos in ~/.config/wcp/wcp.sh, I ran it via commandline (via foot) under sway:

KUID: Kinetic UI Daemon v0.1b by Milan Toth ( www.milgra.com )
KUID: DEBUG Set log level to DEBUG                                                                  14:41:02:545146 ../src/mt_core/mt_log.c : 173
KUID: DEBUG xdg output handle logical size, 1920 1080 for monitor 0                                 14:41:02:546111 ../src/kinetic_ui/ku_connector_wayland.c : 1496
KUID: DEBUG INIT, EVENT : 0                                                                         14:41:02:546124 ../src/kuid/kuid.c : 34
KUID: DEBUG NAME DP-3                                                                               14:41:02:546133 ../src/kuid/kuid.c : 40
KUID: event init
WCP.SH Creating layer
WCP.SH Layer created
WCP.SH Getting volume
Assertion failed: pointer != NULL (../src/mt_core/mt_memory.c: mt_memory_retain: 116)
WCP.SH Volume Ratio .82
WCP.SH Getting brightness
WCP.SH Brightness ratio 
WCP.SH Getting bluetooth device
WCP.SH Bluetooth device 
WCP.SH Getting wifi network
WCP.SH Wifi network dsip13pro
WCP.SH Getting printer
WCP.SH Printer 
WCP.SH Getting layout
WCP.SH Layout ul
KUID: DEBUG COMMAND create layer width 300 height 258 anchor rt margin 10                           14:41:02:555919 ../src/kuid/kuid.c : 72
KUID: DEBUG COMMAND load html src ~/.config/wcp/res/main.html                                       14:41:02:555961 ../src/kuid/kuid.c : 72
KUID: ERROR No HTML description                                                                     14:41:02:555995 ../src/kinetic_ui/ku_gen_html.c : 139
KUID: ERROR Empty CSS descriptor                                                                    14:41:02:556008 ../src/kinetic_ui/ku_css.c : 159

I'm not too sure what it means by KUID: ERROR No HTML description