xct's notes
Search…
Kiosk Breakout

Custom Protocol in Browser Kiosk

Try protocols like irc:/ in the address bar to get a "choose application" dialog where we can escape from.

Interactive Shell from Firefox via Custom Protocol

1
<window>
2
<vbox>
3
<vbox scrollable="true" width="600" height="400">
4
<edit>
5
<variable>CMDOUTPUT</variable>
6
<input file>/tmp/cmdout.txt</input>
7
</edit>
8
</vbox>
9
<hbox>
10
<text><label>Command:</label></text>
11
<entry><variable>CMDTORUN</variable></entry>
12
<button>
13
<label>Run!</label>
14
<action>$CMDTORUN > /tmp/cmdout.txt</action>
15
<action>refresh:CMDOUTPUT</action>
16
</button>
17
</hbox>
18
</vbox>
19
</window>
Copied!
Create via Scratchpad, save as shell and run via irc://host -f /home/user/shell. This will open a "choose application" dialog (see point above) and we can choose gtkdialog to execute it.
Last modified 11mo ago
Copy link