Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial xterm is started ignoring Xresources customization #4407

Open
muwlgr opened this issue Oct 28, 2024 · 9 comments
Open

initial xterm is started ignoring Xresources customization #4407

muwlgr opened this issue Oct 28, 2024 · 9 comments
Labels
bug Something isn't working cosmetic

Comments

@muwlgr
Copy link

muwlgr commented Oct 28, 2024

Describe the bug
on one of my remote hosts, I customized Xresources/Xdefaults/xrdb to run xterm with black background and white (or other color) text.
however, when I start initial xterm session using xpra start ssh://hostname xterm , it gets started with white bg and black text. subsequent xterms, started using xterm & from the initial xterm, are started with black bg and white text, which I would expect from the initial xterm as well.
xrdb -query shows identical printout from white-bg window as well as from black-bg.
ssh -X hostname xterm opens black-bg xterm with white text
what could I be doing wrong ?

To Reproduce
Steps to reproduce the behavior:

  1. server command
    just installed xpra in the server side, did not change its configuration
  2. client command
    xpra start ssh://hostname xterm
  3. specific action to trigger the bug
    just observe the initial xterm with white bg, the subsequent xterms with black bg

System Information (please complete the following information):

  • Server OS: [e.g. RHEL 8.x]
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
  • Client OS: [e.g. Windows 10]
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
  • Xpra Server Version [e.g. 4.2.3]
    xpra 6.2.0-r2-1
  • Xpra Client Version [e.g. 4.3]
    xpra 6.2.0-r2-1

Additional context

$ grep . /etc/apt/sources.list.d/xpra.sources 
Types: deb
URIs: https://xpra.org
Suites: bookworm
Components: main
Architectures: amd64 
@muwlgr muwlgr added the bug Something isn't working label Oct 28, 2024
@totaam
Copy link
Collaborator

totaam commented Oct 28, 2024

My guess is that the first xterm is starting before the xsettings have been applied or synchronized.
Try with --xsettings=no
Or start your xterm with --start-after-connect=xterm.

@muwlgr
Copy link
Author

muwlgr commented Oct 28, 2024

xpra start ssh://hostname --xsettings=no xterm
starts white-bg xterm (with subsequent xterms spawned from it having black-bg)

xpra start ssh://hostname --start-after-connect=xterm
does not start anything, only hangs the session on the client side until I press Ctrl+C

@totaam
Copy link
Collaborator

totaam commented Oct 28, 2024

Sorry, no idea - and no time to spend on this.

@muwlgr
Copy link
Author

muwlgr commented Oct 28, 2024

ssh -X hostname xterm opens black-bg xterm with white text (which is expected)
what could I be doing wrong ?

@totaam
Copy link
Collaborator

totaam commented Oct 28, 2024

Wild guess: something should load xrdb into the session before launching the xterm?

@muwlgr
Copy link
Author

muwlgr commented Oct 28, 2024

I don't have ~/.xsession in my home.
I don't have xrdb calls in my ~/.bash* scripts (only some lines recorded in .bash_history or .xsession-errors)
but still,
ssh -X hostname xterm shows black bg (expected)
xpra start ssh://hostname xterm shows white bg (wrong, how to fix?)

@muwlgr
Copy link
Author

muwlgr commented Oct 28, 2024

I remember it working as expected with previous versions of xpra.
I have a different host on which xpra start ssh://hostname xterm starts a black-bg xterm same as ssh -X hostname xterm does

@muwlgr
Copy link
Author

muwlgr commented Oct 28, 2024

sorry, I don't have this 'healthy' host anymore. probably because I did not start xpra server part on it for too long after the update. It only had LANG=uk_UA.UTF-8 startkde command in its ~/.xsession but removing and restoring this line did not have much impact. black-bg on first login, white-bg on subsequent logins after first logout (and black-bg for any subsequently-started xterms).

@muwlgr
Copy link
Author

muwlgr commented Oct 28, 2024

further observations:
any xterm started with xpra start ssh://hostname ... , starts with white-bg.
any child xterm started from white-bg xterm with xterm & starts with black-bg
any xterm started with ssh -X hostname ... starts with black-bg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cosmetic
Projects
None yet
Development

No branches or pull requests

2 participants