xpra icon
Bug tracker and wiki

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#699 closed enhancement (fixed)

Make Menu Selections Persistent

Reported by: radiosilence Owned by: radiosilence
Priority: major Milestone:
Component: platforms Version: trunk
Keywords: Cc:

Description (last modified by Antoine Martin)

When we select certain features we want from the Features and Encoding menus, it would be better from the user perspective to have the program remember those selections.

Use case: Currently, the connection gets lost frequently, once every 15 minutes to an hour. When that happens, i reestablish the connection and need to select my options: Swap control/command key and use PNG encoding. It's a chore to do this every time. Of course, if the connection dropping can be resolved, that is also a solution. Short of that, having persistent option settings would make those drops not noticeable.

I call /Applications/Xpra.app/Contents/MacOS/Xpra attach <srv>:DISPLAY directly, so a quick up arrow-enter reestablishes my connection.

Change History (5)

comment:1 Changed 6 years ago by Antoine Martin

Owner: changed from Antoine Martin to radiosilence

Currently, the connection gets lost frequently, once every 15 minutes to an hour


Why is that? That sounds like something worth fixing.

When that happens, i reestablish the connection and need to select my options:
Swap control/command key and use PNG encoding


Isn't swap the default?
As for setting the encoding:

  • via the config file:
    echo "encoding=png" >> ~/.xpra/xpra.conf
    
  • via the command line:
    .../Xpra attach --encoding=png
    

Note however that png is pretty bad.. (see wiki/Encodings)

Modifying (or creating it if it does not exist) the user config is not something that applications normally do without giving the user the option to "save preferences". Could be done I guess, but unlikely since there are other ways to set preferences already (see above).

comment:2 Changed 6 years ago by radiosilence

Interesting! Both the swap and encoding can be specified by command line. This is all i need. Thank you!

My command is now:

/Applications/Xpra.app/Contents/MacOS/Xpra attach ssh:<server>:13 --encoding=png --no-swap-keys

Awesome.

I want the cntrl key to remain triggered with the cntrl key because cmd-space on the mac is spotlight while on linux/eclipse it's autocompletion.

I'll post another entry here about the lost connection. Thanks!

Last edited 6 years ago by Antoine Martin (previous) (diff)

comment:3 Changed 6 years ago by radiosilence

Resolution: fixed
Status: newclosed

comment:4 Changed 6 years ago by Antoine Martin

Description: modified (diff)

FYI: the command line options are in the man page, which I have now rendered online here: browser/xpra/trunk/src/man/xpra.1.

Bear in mind that this is the unreleased trunk version, which just so happens to have changed a number of command line arguments from --no-XYZ to --XYZ=no (although it still supports the old form, the man page only lists the new form..)

comment:5 Changed 6 years ago by Antoine Martin

Just one more thing on the subject, as of r7862 we will also be shipping the manual page in html format on win32 (via a start menu link) and osx (via a helper command to launch the browser).

Note: See TracTickets for help on using tickets.