xpra icon
Bug tracker and wiki

Opened 6 months ago

Closed 3 months ago

#2700 closed enhancement (fixed)

xpra list add session names

Reported by: stdedos Owned by: Antoine Martin
Priority: minor Milestone: 4.1
Component: server Version: 3.0.x
Keywords: Cc:

Description

When that list starts getting long, it becomes hard to track the session you are looking for:

$ xpra list
Found the following xpra sessions:
/run/user/1000/xpra:
	LIVE session at :100
	LIVE session at :2
	LIVE session at :20
	LIVE session at :200
/run/xpra:
	LIVE session at :100
	LIVE session at :2
	LIVE session at :20
	LIVE session at :200

My ideas would be:

  • The automatic name
  • A custom name (I don't remember; can I do that?)
  • CSV all the open window titles (is there an easy way to do that, or do I need to play with window.\d+.title= xpra-info parsing?)

Attachments (1)

Screenshot-xpra_2020-05-09_09-27-48.png (111.0 KB) - added by stdedos 4 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 5 months ago by Antoine Martin

Milestone: 4.04.1
Status: newassigned

comment:2 Changed 4 months ago by Antoine Martin

Owner: changed from Antoine Martin to stdedos
Status: assignednew

Do you want something like xpra sessions but in text format?

comment:3 Changed 4 months ago by stdedos

Not exactly, that is equally unhelpful (although interactive)

Name seems to exist, but picks up something automatic. How can I change it on running sessions?

I am looking for this (python-tabulate):

Display    Status    Name    Windows
---------  --------  ------  ------------------------------
:0         Live      ColD    shadow
:2         Live      ColA    ['gnome-terminal', 'Rubymine']
:20        Live      ColB    ['gnome-terminal', 'subl']
:200       Live      ColC    ['gnome-terminal', 'smerge']

Changed 4 months ago by stdedos

comment:4 Changed 3 months ago by Antoine Martin

Name seems to exist, but picks up something automatic.

Correct: usually the first real argument of your --start= command(s).

How can I change it on running sessions?

xpra control :10 name WHATEVER

You will need r26712 to see the updated name with the mdns viewer.

Done in r26714. Here's what I see now with a shadow and another session:

$ xpra list-windows
Display   Status    Name           Windows
:1        LIVE      GNOME Shell    xpra-linux-fedora
:10       LIVE      xterm          xterm, lxterminal, xterm

comment:5 Changed 3 months ago by stdedos

Owner: changed from stdedos to Antoine Martin

I would prefer overloading/replacing plain xpra info command, but this is good enough.

v4 server is too much in the future for me, so I guess fixed?

comment:6 Changed 3 months ago by Antoine Martin

Resolution: fixed
Status: newclosed

v4 server is too much in the future for me, so I guess fixed?

Done.

FYI: this is scheduled for backporting to v3.1

Note: See TracTickets for help on using tickets.