Uzbl

Tasklist

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
Task Type Feature Request
Category uzbl-core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently 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
Comment by Dieter Plaetinck (Dieter_be) - 2009-06-07 12:02:43 PM
echo 'print @uri' > $fifofile

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.
Comment by dx (dx) - 2009-06-15 07:18:44 AM Comment by Dieter Plaetinck (Dieter_be) - 2009-08-27 08:07:10 PM
uzblctrl is in the meanwhile deprecated in favor of socat.

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 ~

Loading...