Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Can a program have its own dedicated X display, as though it can start the X display, set the screen size to match its own size and ensure that no other program can use that X display?

Some VNC clients specify the ability to run a chosen program in the display, rather than the whole desktop, and I wonder whether it something that is set on the command to bring up the X display. My web mojo isn't that good and I want to be run programs remotely in their own web tabs using noVNC and guacamole.

share|improve this question
add comment

1 Answer 1

No, you cannot simply give a program a Xdisplay. You would need a quite sophisticated windows manager for that. Yet, I believe you mean Xserver, not Xdisplay, and yes, you can create multiple Xserver instances and only run one program inside them. However, AFAIK a program cannot adopt a Xserver, especially not the size of the screen.

From what you want to do you are likely to use the Xvnc variant of Xserver and Xvnc does take an argument -geometry widthxheight which is probably what you want. Yet, I don't think the geometry can't be changed once the server has been started.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.