View Single Post
Old 06-03-2024, 05:42 PM   #1349
mullse01
Member
mullse01 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2024
Device: Kindle PW 3, Kobo Clara BW
Quote:
Originally Posted by geek1011 View Post
Not in the current form where all actions are synchronous. For now, the recommended way is to use NickelDBus with a shell script and cmd_spawn.
Hello again,

I'm attempting to create a shell script like you mentioned, but i can't seem to get NickelDBus to actually *do* anything after the dialog box appears. Here's the text of the script as I've got it:

Quote:
#!/bin/sh

signal=$(qndb -t 10000 -s dlgConfirmResult -m dlgConfirmAcceptReject "Reboot Kobo" "Are you sure you want to reboot?" "Yes" "No")

if ( $signal -eq 1 )
then
qndb -m mwcToast 3000 "Rebooting..."
qndb -m pwrReboot
elif ( $signal -eq 0 )
then
qndb -m mwcToast 3000 "Reboot cancelled."
fi
Am I missing some obvious syntax issue?

(Sorry if this is the wrong thread--the NickelDBus thread hasn't been posted in for like two years, and I didn't want to necropost...)
mullse01 is offline   Reply With Quote