xpra icon
Bug tracker and wiki

Opened 7 years ago

Closed 6 years ago

#317 closed enhancement (fixed)

pass more options when using remote ssh start

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: minor Milestone: 0.13
Component: core Version:
Keywords: Cc:

Description (last modified by Antoine Martin)

related to #316

When using remote start, like:

xpra start ssh:HOST:port --start-child=xterm --exit-with-children

At the moment, start-child and exit-with-children are the only two flags being forwarded to the remote start command.


Here are some of the flags that we may want to forward to the server when using remote start.
Not all flags are candidates, only those that affect the server in a way that cannot be changed are overridden afterwards.

These are the strongest candidates in descending order:

  • session-name
  • no-pulseaudio
  • socket-dir
  • mmap-group / no-mmap
  • readonly
  • enable-pings
  • clipboard-filter-file
  • encryption
  • system-tray
  • encoding - (since we may provide a better default)
  • speaker-codec and microphone-codec, meh
  • clipboard, notifications, system-tray, cursors, bell


And whilst we're at it, maybe make the flag forwarding code generic?

Change History (2)

comment:1 Changed 7 years ago by Antoine Martin

Milestone: 0.10future
Status: newassigned

Not important - will add if someone shouts.

comment:2 Changed 6 years ago by Antoine Martin

Description: modified (diff)
Milestone: future0.13
Resolution: fixed
Status: assignedclosed

I was looking for something easy to do... and this is not it!

The problems are:

  • we don't know what command line options the remote server supports, as many features can be turned off at build time
  • some of the options will be turned on or off based on the client OS or capabilities, but we may still want them enabled on the server
  • many options should only apply to the current connection

r5943 implements forwarding for the options that make sense:

  • "key=value" options: session-name, encoding, socket-dir and dpi
  • "--XYZ" explicitly enabled features: exit-with-children, mmap-group and readonly
  • "-no-XYZ" options: pulseaudio, mmap, system-tray, clipboard and bell

The code is generic enough that we can easily add more if needed, this will do for now.

Note: See TracTickets for help on using tickets.