Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.96k stars 169 forks source link

initial xterm is started ignoring Xresources customization #4407

Open muwlgr opened 1 hour ago

muwlgr commented 1 hour ago

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):

Additional context

$ grep . /etc/apt/sources.list.d/xpra.sources 
Types: deb
URIs: https://xpra.org
Suites: bookworm
Components: main
Architectures: amd64 
totaam commented 1 hour ago

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 commented 1 hour ago

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 commented 1 hour ago

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

muwlgr commented 1 hour ago

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

totaam commented 1 hour ago

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

muwlgr commented 1 hour ago

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 commented 1 hour ago

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 commented 1 hour ago

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 commented 36 minutes ago

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