399 questions
1
vote
0
answers
65
views
X-forwarded PyQt application hanging due to separate UHD application
I'm working on a project that uses an X440 radio from Ettus Research, which relies on UHD under the hood for its API. My application has three main components:
C++ files that handle all of the UHD/...
0
votes
0
answers
128
views
How to move the title section of a UI window off screen using QT?
I am building my app with QT5.9 on Linux. I do not want Xserver to add a fixed style system title to my dialog like below (title underlined in red below),
Because of this, I wrote my own Dialog Class,...
0
votes
0
answers
128
views
How to Change Desktop Background Using C++ and X11?
I'm working on a C++ application that uses the X11 library, and I want to change the desktop background to a PNG image. I have a piece of code that loads a PNG image and displays it in a window, but I ...
2
votes
0
answers
105
views
Where is Tkinter sourcing info about the screen DPI?
Using X on Linux, Tkinter (Python 3.12) tells me that I have a DPI value of ~96 (wrong), while the X server tells me that my DPI value is ~185 (correct).
In [1]: import tkinter as tk
...: root = tk....
0
votes
0
answers
62
views
why x11 xserver drawline is faster than directly write buffer?
x11 code
//use x11 api
for (int i = (xrectw >> 1) + cc; i < CANVAS_WIDTH; i += xrectw)
{
for (int j = (yrectw >> 1) + cc; j < CANVAS_HEIGHT; j += yrectw)
{
XDrawLine(...
2
votes
0
answers
2k
views
How to solve Missing X server or $DISPLAY when trying to change the loaded website in Chromium
I am a newbie with using raspberry and
I am using chilipie-kiosk to develop a kiosk on a raspberry pi. The idea is when the Raspberry Pi starts, the Chromium browser is launched with a page that we ...
1
vote
0
answers
989
views
Chromium with GUI running in docker container
I want to run Chromium browser inside docker container. So the first step for me would be just to manage to start startx inside container.
Now I managed to make service which is just:
startx
Now when ...
0
votes
0
answers
40
views
Docker image with X swing libs pre installed
I have Hello work Java app
package org.example;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax....
1
vote
1
answer
104
views
Xlib Window Manager: Closing Focused Window Causes Unexpected Shutdown
i wrote a simple window manager using Xlib. the window manager runs, and launching a terminal with the Super+t shortcut works correctly. however, when i attempted to close the focused window by ...
1
vote
1
answer
1k
views
Running X11 on core-image-minimal image compiled with Yocto
I have a Raspberry Pi 3b and a 7" touchscreen connected to it. I want to run a PyQt5 application on this device with the image I created.
When I use core-image-sato when creating an image and ...
0
votes
1
answer
242
views
Launch NodeJS script with puppeteer on system startup Missing X server or $DISPLAY
I'm trying to launch a NodeJS script using puppeteer with headless = false, this script is run by PM2 (process manager) at startup.
I'm not having a desktop environment, this is run on a remote server ...
0
votes
0
answers
75
views
Got wrong pictures while saving ZPixmap to png
I want to intercept the damaged region image of the client in ProcShmPutImage of xserver. I can confirm that the image is in Zpixmap format with a depth of 24 and bits_per_pixel is 32. I use the ...
1
vote
0
answers
346
views
How can I run a nested X server (from Rust/code in general) to test my window manager?
I'm looking for ways that I can test my window manager in a nested X server launched from code, ideally. While I'm working in Rust, I suspect this is going to be a language-independent task.
I'm ...
0
votes
1
answer
55
views
Implementing Selenium tests automation via Jenkins for Maven project
I am trying to integrate selenium tests suite (Maven) with jenkins and I am using chrome headless browser but facing error as below.
[2114:2114:0905/122912.875011:ERROR:ozone_platform_x11.cc(239)] ...
0
votes
1
answer
1k
views
How to run Cypress in interactive mode in a devcontainer on Windows with Docker Desktop?
I am working on a Windows desktop. I am trying to run Cypress in a devcontainer which runs in my local Docker Desktop. I am using VcXsrv as local X Server to enable the GUI. Actually it works fine ...
0
votes
1
answer
40
views
xserver missing winauth.h header file
good morning,
i am trying to make with cygwin for xserver but it keeps throwing missing winauth.h file.
InitOutput.c:68:10: fatal error: winauth.h: No such file or directory
68 | #include "...
1
vote
1
answer
163
views
CygWin How to create a Window with GNU C++ that can be move without a X-Server Window Manager
like the Subject of the Topic said:
CygWin for Windows comes with a X-Server port for Windows
How can I create a "moveable" Window, with the X-Server
functions that are available when you (...
0
votes
0
answers
642
views
Puppeteer timeout 30000ms when headless is true
I am running a bunch of web tests remotely, with Screen on a Ubuntu machine, running Lighthouse on a Puppeteer browser instance. Current setup used to work very fine until 2022 November when I ran ...
0
votes
0
answers
117
views
How the X application can detect that the selection owner changed?
I am playing with the X protocol and noticed, that when my program sends SetSelectionOwner, several other clients instantly send to me SelectionRequest events with target TARGETS.
But how they know ...
1
vote
0
answers
614
views
Cypress on WSL with X-Server opens empty windows
I've followed this article for running Cypress on WSL (Ubuntu distribution).
When I run cypress open in WSL it does open Cypress app on Windows but Cypress doesn't display anything and WSL throws ...
1
vote
1
answer
1k
views
Cannot bind X UNIX socket within Docker container
I am trying to run Xvfb within a Docker container, but it is failing with the error:
$ Xvfb :0 -nolisten tcp -screen 0 1024x768x24
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
...
-2
votes
1
answer
853
views
How to run connect Display to GUI app running in docker container when docker service is running on remote server
What can we do if my docker service is running on a remote server with no display, and we need to connect the GUI app running in the docker container to the DISPLAY at the local system?
In my scenario ...
1
vote
0
answers
363
views
RUN headful playwright in an rdp as root targeting a non root user's $DISPLAY
i want to RUN a simple nodejs script which runs headful playwright in a linux RDP running xrdp with gnome as root , and i want to target a non root user's $DISPLAY
the goal is i don't want the rdp ...
2
votes
2
answers
1k
views
Can I talk to the X server by mounting .X11-unix remotely?
This is just a conceptual question to test if I understand how X works.
Let's I have an X server running on machine A. If I make a new directory called /tmp/.X11-unix on on machine B, and use sshfs to ...
4
votes
0
answers
992
views
Continously capturing/reading all frames from Xvfb virtual framebuffer as a stream?
I have a Linux system (Raspberry Pi 4 with DietPi) which controls some RGB LED Matrix panels, by transmitting buffers of RGB pixels.
I want to display the content of a virtual frame buffer on the LED ...
0
votes
0
answers
613
views
Unable to init Xserver inside a docker container on PopOS
I have a use-case where I need to run a GUI application from Docker and display it on either a Windows or a Linux host. (In this example I try it with firefox)
For Windows, it works as intended using ...
2
votes
1
answer
481
views
How to get a list of windows in X11 with Go
I would like to get a list of windows + window names of all open windows in X11 using go. I assume that the xgb package would be used.
0
votes
1
answer
1k
views
How do I run VSCode in WSL in X server environment?
I have WSL 2 installed with Ubuntu and the i3 window manager. I want to run VSCode in the i3 x server environment, but whenever I run VSCode it's opened as a Microsoft Windows window. How do I force ...
1
vote
0
answers
506
views
Start Xorg in a k8s pod with required securityContext
I'm trying to run Xorg app on a k8s cluster.
If i add the following in the container part my pod description, it works fine.
securityContext:
privileged: true
However, for security ...
0
votes
1
answer
41
views
How to do ssh X forwarding to second X server?
I started two xservers: xwin.exe :0 and xwin.exe :1
If I do ssh -X remotehost then xterm opens on first X server.
How to make xterm open on second X server?
1
vote
0
answers
717
views
lanching desktop application in containers and making them accessible like services using kubernetes and xorg
In a school project, we've been asked to solve the following problem:
our students use some software (desktop application )for their studies like packet-tracer, eclipseIDE, qjis, etc. and they may ...
6
votes
1
answer
7k
views
Playwright unable to open headed browser on Ubuntu
I'm attempting to figure out how to open a headed browser to do some tasks from inside of NestJs application running in a docker container.
Application Code:
import { Controller, Get } from '@nestjs/...
1
vote
0
answers
433
views
Gnome coming blank
We are trying to start xserver as user using startx command, once startx start the X server we try to start the gnome-session on same display. But when we connect to the display using x11vnc it shows ...
0
votes
1
answer
213
views
X server gets killed as soon as python command executes
I'm a Linux newbie and the concepts of X etc are daunting to me, so please be patient. I'm trying to start X server using the bash command startx in python like
cmd = 'startx &'
subprocess.Popen(...
0
votes
1
answer
78
views
XServer first key typed is always in lowercase
I'm writing a method for keyboard handling where I'm passing the key unicodes and firing keystrokes using the XTestFakeKeyEvent Method of X11. Now my issue is that after the opening the display, if ...
2
votes
0
answers
2k
views
Is that normal that $DISPLAY environment variable value is 1?
Well, I have some sort of problems and that one may be the root of them. I just want to know if that output is normal.
~$ echo $DISPLAY
:1
Is there any problem? According to my research, it should ...
0
votes
1
answer
543
views
Cron Task which displays something (task launched but nothing happens) [duplicate]
I well used the command "crontab -e" and added this task :
* * * * * * bash /home/user1/launcher.sh
The content of launcher.sh is :
#!/bin/bash
PATH=/home/user1/.local/bin:/usr/local/sbin:/...
0
votes
0
answers
332
views
Why do I receive key release event when key release is not in event mask. (xcb)
I am making a simple xcb application and I noticed that when XCB_EVENT_MASK_KEY_PRESS is in the event mask and XCB_EVENT_MASK_KEY_RELEASE is not in the event mask I still get XCB_KEY_RELEASE events in ...
5
votes
0
answers
1k
views
Windows 10 WSL2 - Electron App via X-Server with blank screen
I want to run my Electron Apps in version 16 on Ubuntu with WSL2 and x-server (VcXsrv). The application opens under Windows 10, but unfortunately the screen is blank. Even if I just start the Electron ...
1
vote
0
answers
2k
views
run telegram in a docker
I want to run telegram in docker, so I found this repository: https://hub.docker.com/r/xorilog/telegram/
I tried to run this command:
docker run --rm -it --name telegram \
--hostname=$(hostname)...
4
votes
1
answer
3k
views
Docker : how to (reverse) forward port to allow access to the host's localhost:PORT?
I want to enable a docker VM to connect to a port on the localhost of the host starting docker on windows.
docker proposes port forwarding but IMHO only to expose a docker's VM port to the host ...
0
votes
1
answer
2k
views
How to configure MobXterm to get display of Docker GUI app on windows 10?
How to configure MobXterm X server to get display of Docker GUI interactive app on windows 10 to avoid error: “_tkinter.TclError: no display name and no $DISPLAY environment variable
2
votes
0
answers
658
views
Resize vcXsrv windows in WSL2
I am using WSL2 with VcXsrv as X Server. More specifically, I am processing images using opencv. When I visualize an image, the window generated by the X server cannot be resized.
Can you help me ...
1
vote
1
answer
1k
views
files won't open from vscode integrated terminal while on remote-ssh connection
I just can not open files from vscode integrated terminal while on remote-ssh connection
Local machine: windows 10
Remote machine: Ubuntu 20.04
here is a log from code trying to launch abc.txt
$ code ...
0
votes
1
answer
3k
views
mobaxterm 12.4 X11-forwarding is not working for the new VM
i am using MObaXterm 12.4 for GUI installation but getting the below display error, and installation wizard was not opening due to display error.
but the same mobaxtrem gui is working fine for ...
0
votes
1
answer
379
views
How to manually scale desktop applications in Kubernetes on-demand
I have a containerized legacy application using VNC as an XServer.
I'd like to run this application in a Kubernetes cluster, and start an application instance on-demand, when a new user logs in the ...
3
votes
0
answers
495
views
glfw program crashing in WSL2
I'm trying to run the example GLFW program on WSL2 with vcxsrv as the X server. There are no problems running the current program with the two lines commented out. When I uncomment only glCear(...
5
votes
2
answers
4k
views
Cypress unable to open X Display in WSL2
I have followed every single step in this tutorial. Double Checked. Double Installed.
https://nickymeuleman.netlify.app/blog/gui-on-wsl2-cypress
But I get the error :
[3974:0912/194522.792278:ERROR:...
0
votes
0
answers
725
views
error running a gui application on systemd services
I am trying to run a gui commands in systemd services which i want it to execute on system startup.
these are my files.
oversteer.sh file:
#!/bin/bash
sleep 1s
export DISPLAY=:99.0
export ...
0
votes
1
answer
230
views
how to run/start graphical programs (Ex: firefox) on a remote machine using CLI without logging in
So, the story is like this:
I have 2 linux machines with ubuntu 20.04 installed on both. one of them, call it computer A doesn't have X on it because it is the server version installed and I don't ...