FS#10 - get the current URI from socket
Attached to Project:
Uzbl
Opened by Anonymous Submitter - 2009-05-11 09:59:26 AM
Last edited by Dieter Plaetinck (Dieter_be) - 2009-08-27 08:07:32 PM
Opened by Anonymous Submitter - 2009-05-11 09:59:26 AM
Last edited by Dieter Plaetinck (Dieter_be) - 2009-08-27 08:07:32 PM
|
DetailsCurrently there is no way to get the current URI from a running Uzbl client.
If we could implement this somehow, it would be easy create scripts the save sessions of Uzbl and then reopen them, for example, or running other scripts on the current URI (download all photos, for example, or running youtube-dl or clive for youtube pages) |
This task depends upon
Closed by Dieter Plaetinck (Dieter_be)
2009-08-27 08:07:32 PM
Reason for closing: Implemented
Additional comments about closing: sockets baby ! and socat yeah
2009-08-27 08:07:32 PM
Reason for closing: Implemented
Additional comments about closing: sockets baby ! and socat yeah
This will write the current uri to stdout.
But printing to stdout does probably not allow the clean implementation you want to do.
What we should really have, is the ability to send stuff back through the socket (right now socket is half duplex).
In examples/scripts/session.sh there is a pretty cool workaround though: it iterates over all fifo's, and sends "spawn $scriptfile endinstance" to them. And when session.sh is called from inside uzbl, the uri is passed along as one of the args.
dieter@dieter-ws-a7n8x-arch ~ uzbl --name testuzbl http://www.surelythiswillwork.com &
[2] 12349
[1] Done uzbl --name testuzbl
dieter@dieter-ws-a7n8x-arch ~ echo 'print @uri' | socat - unix-connect:/tmp/uzbl_socket_testuzbl
http://www.surelythiswillwork.com/
dieter@dieter-ws-a7n8x-arch ~