xpra icon
Bug tracker and wiki

Opened 3 years ago

Closed 2 years ago

#868 closed defect (worksforme)

expose url when connecting from html5 client

Reported by: Smo Owned by: Smo
Priority: minor Milestone: 0.16
Component: server Version: trunk
Keywords: Cc:

Description (last modified by Smo)

For example if one was to call

http://xpra.server:10000?debug=1&encoding=x264

It would be nice if we could get the full url from the client and store it which we could retrieve via

xpra info

Change History (4)

comment:1 Changed 3 years ago by Smo

Description: modified (diff)

comment:2 Changed 3 years ago by Antoine Martin

Status: newassigned

I'll add a "hello" key so the client can forward its command line (probably "argv"), then we can expose it via xpra info. That will be useful for the regular client too.

comment:3 Changed 3 years ago by Antoine Martin

Owner: changed from Antoine Martin to Smo
Status: assignednew

Done for the python client in r9473:

$ xpra info | grep argv=
client.argv=('/usr/bin/xpra', 'attach')
server.argv=('/usr/bin/xpra', 'start', ':10', '--bind-tcp=0.0.0.0:10000', '--start-child=xterm')

The client just added a new key to the hello packet named "argv".

Done for the html5 client in r9474:

$ xpra info | grep client.argv=
client.argv=('http://localhost:10000/?foo=bar/',)

It seems that the html5 client added a trailing slash to the URL I typed in. Maybe that's a bug, or a feature.

comment:4 Changed 2 years ago by Smo

Resolution: worksforme
Status: newclosed

Not sure about the trailing slash will reopen if necessary otherwise working as expected.

Note: See TracTickets for help on using tickets.