xpra icon
Bug tracker and wiki

Opened 8 months ago

Closed 8 months ago

#2681 closed defect (fixed)

Black screen on xpra start-desktop :1 --use-display

Reported by: aviopene Owned by: aviopene
Priority: major Milestone: 4.0
Component: html5 Version: 3.0.x
Keywords: Cc:

Description (last modified by Antoine Martin)

The exact command line is:

xpra start-desktop :1 --use-display --no-speaker --no-microphone --clipboard=no --bind-tcp=0.0.0.0:47503 --html=on

Well, it's not totally black, I see the small menu on the top-left corner and I can launch processes from there (I see them with ps). But everything else is black in the browser screen (both with Firefox and Chrome, with both users).

This is a freshly created user, on my main user xpra works ok in this same way. I've logged in on the other user, so he has it's own DISPLAY.

xpra version is v3.0.7-r25627 on Ubuntu 18.04 64-bit on 4.15.0-91-generic

Attachments (1)

bugreport.zip (165.7 KB) - added by aviopene 8 months ago.

Download all attachments as: .zip

Change History (7)

Changed 8 months ago by aviopene

Attachment: bugreport.zip added

comment:1 Changed 8 months ago by Antoine Martin

Description: modified (diff)
Resolution: invalid
Status: newclosed

What are you expecting to see?
If you want to start an application or a desktop environment, add:

--start=xterm

or

--start=fluxbox

Or whatever.

comment:2 in reply to:  1 Changed 8 months ago by aviopene

Resolution: invalid
Status: closedreopened

Added --start=xterm at the end of the command line:

xpra start-desktop :1 --use-display --no-speaker --no-microphone --clipboard=no --bind-tcp=0.0.0.0:47503 --html=on --start=xterm

Same black screen. As I wrote, the desktop works because I can launch as many calculators as I want and I see them with ps. The rest of screen remains black.

Last edited 8 months ago by Antoine Martin (previous) (diff)

comment:3 Changed 8 months ago by Antoine Martin

Owner: changed from Antoine Martin to aviopene
Status: reopenednew

Wait, why are you using :1 and --use-display?
What are you trying to do?
Is this your existing X11 display?

In which case, you want xpra shadow, not xpra start-desktop.

comment:4 in reply to:  3 Changed 8 months ago by aviopene

Replying to Antoine Martin:

Wait, why are you using :1 and --use-display?
What are you trying to do?
Is this your existing X11 display?

I have :0 for my main user and :1 for another user freshly created. I'm trying to sync another Dropbox account but the only way to do selective sync is to have the damn dropbox icon in the tray and xpra is steadily improving in performance and ease of use, so I was trying to use it instead of the plethora of DBUS_SESSION_BUS_ADDRESS="", dbus-launch tricks, etc. that Dropbox requires to show in the notification bar.

In which case, you want xpra shadow, not xpra start-desktop.

With:

xpra shadow :1 --use-display --no-speaker --no-microphone --clipboard=no --bind-tcp=0.0.0.0:47504 --html=on

I see the same black screen, but now if I attach via ssh, I also see the mouse pointer :)

comment:5 Changed 8 months ago by Antoine Martin

If :1 is a regular display managed by your X11 server, you probably won't be able to see anything when this display is not active.

Why not just forward the dropbox tray icon alone via xpra?
xpra start ssh://user2@localhost/ --start=dropbox

comment:6 in reply to:  5 Changed 8 months ago by aviopene

Resolution: fixed
Status: newclosed

Replying to Antoine Martin:

If :1 is a regular display managed by your X11 server, you probably won't be able to see anything when this display is not active.

Yep, you're right, I've already noticed this problem, the screen must be "in use" for xpra to show something or for xwd -root to capture something.

Why not just forward the dropbox tray icon alone via xpra?
xpra start ssh://user2@localhost/ --start=dropbox

Thanks I'll try, for the moment I've solved trying all the dropbox dbus tricks with bruteforce and one of them worked.

This doesn't look like a xpra problem, I can mark this bug as fixed, I don't know if "upstream" is more appropriate.

Thanks!

Note: See TracTickets for help on using tickets.