power button opens, but doesn't close svkbd
#2
so I've been working on fixing this. the command to open it in config.{def.}h is:
Code:
    {1,  0,  XF86XK_PowerOff, spawn, SHCMD("pkill -9 $KEYBOARD || $KEYBOARD") },
I've been testing manually running that in the shell and it also fails. it seems that pkill will not accept the defined variable as an input. pkill is known to not handle names as nicely as killall, so a workaround is to pass the -f variable to the pkill command, making the line:
Code:
    {1,  0,  XF86XK_PowerOff, spawn, SHCMD("pkill -9 -f $KEYBOARD || $KEYBOARD") },
this works for me, although it may not kill the first instance of the keyboard that's launched as root on the login screen.
  Reply


Messages In This Thread
RE: power button opens, but doesn't close svkbd - by hiimtye - 01-18-2021, 11:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SXMO svkbd with joypad layout [for basic dosbox play] streak 0 1,512 05-27-2021, 08:47 AM
Last Post: streak
  phone doesn't begin charging until awoken hiimtye 2 2,612 02-15-2021, 11:30 AM
Last Post: hiimtye
  RSS feed doesn't seem to care about sfeedrc hiimtye 1 1,848 01-18-2021, 12:13 AM
Last Post: hiimtye

Forum Jump:


Users browsing this thread: 1 Guest(s)