[GH-ISSUE #2008] Launching a x11=xephyr Firejail instance to a full monitor instead of a window #1351

Open
opened 2026-05-05 07:55:06 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @Futureknows on GitHub (Jun 21, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2008

Using the following Xephyr command we can launch a Xephyr instance to a full screen of a monitor (DP-4) rather than to a windowed xephyr instance.

Xephyr :1 -output DP-4

Is it possible to pass these parameters to a x11=Xephyr firejail so that the output will be a full monitor? I tried adding the :1 -output DP-4 to the # Xephyr command extra parameters section of firejail.config but it didn't pass the parameters.

# Xephyr command extra parameters. None by default; these are examples.
# xephyr-extra-params -keybd ephyr,,,xkbmodel=evdev
# xephyr-extra-params -grayscale
xephyr-extra-params :1 -output DP-4
Originally created by @Futureknows on GitHub (Jun 21, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2008 Using the following Xephyr command we can launch a Xephyr instance to a full screen of a monitor (DP-4) rather than to a windowed xephyr instance. `Xephyr :1 -output DP-4` Is it possible to pass these parameters to a x11=Xephyr firejail so that the output will be a full monitor? I tried adding the `:1 -output DP-4` to the `# Xephyr command extra parameters` section of firejail.config but it didn't pass the parameters. ``` # Xephyr command extra parameters. None by default; these are examples. # xephyr-extra-params -keybd ephyr,,,xkbmodel=evdev # xephyr-extra-params -grayscale xephyr-extra-params :1 -output DP-4 ```
gitea-mirror added the
information_old
label 2026-05-05 07:55:06 -06:00
Author
Owner

@netblue30 commented on GitHub (Jun 22, 2018):

I put a fix in git to display the parameters passed to Xephyr at startup. It is passing xephyr-extra-params, however it complains about DP-4:

$ firejail --x11=xephyr xterm
*** Starting xephyr server: "Xephyr" "-ac" "-br" "-noreset" "-screen" "800x600" "-title" "firejail x11 sandbox" ":1" "-output" "DP-4" ":696" ***

Reading profile /etc/firejail/Xephyr.profile
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 6048, child pid 6049
Child process initialized in 30.38 ms

Output DP-4 not available in host X server.

Parent is shutting down, bye...
Error: failed to start xephyr
<!-- gh-comment-id:399397219 --> @netblue30 commented on GitHub (Jun 22, 2018): I put a fix in git to display the parameters passed to Xephyr at startup. It is passing xephyr-extra-params, however it complains about DP-4: ````` $ firejail --x11=xephyr xterm *** Starting xephyr server: "Xephyr" "-ac" "-br" "-noreset" "-screen" "800x600" "-title" "firejail x11 sandbox" ":1" "-output" "DP-4" ":696" *** Reading profile /etc/firejail/Xephyr.profile Reading profile /etc/firejail/whitelist-common.inc Parent pid 6048, child pid 6049 Child process initialized in 30.38 ms Output DP-4 not available in host X server. Parent is shutting down, bye... Error: failed to start xephyr `````
Author
Owner

@Futureknows commented on GitHub (Jul 3, 2018):

Is it possible to pass Xephyr parameters (such as the resolution and screen) directly from the Firejail command line, overriding the firejail.config?

<!-- gh-comment-id:402278532 --> @Futureknows commented on GitHub (Jul 3, 2018): Is it possible to pass Xephyr parameters (such as the resolution and screen) directly from the Firejail command line, overriding the firejail.config?
Author
Owner

@chiraag-nataraj commented on GitHub (Aug 21, 2018):

@Futureknows You can pass the resolution (--xephyr-screen), but I don't think anything else can be passed through the command line.

<!-- gh-comment-id:414588019 --> @chiraag-nataraj commented on GitHub (Aug 21, 2018): @Futureknows You can pass the resolution (`--xephyr-screen`), but I don't think anything else can be passed through the command line.
Author
Owner

@rusty-snake commented on GitHub (Jun 26, 2019):

Is it possible to pass Xephyr parameters (such as the resolution and screen) directly from the Firejail command line, overriding the firejail.config?

Should we implement this?

<!-- gh-comment-id:505803185 --> @rusty-snake commented on GitHub (Jun 26, 2019): > Is it possible to pass Xephyr parameters (such as the resolution and screen) directly from the Firejail command line, overriding the firejail.config? Should we implement this?
Author
Owner

@jonleivent commented on GitHub (Jan 29, 2020):

I added my + to the request to be able to pass Xephyr parameters directly from the Firejail command line or profile. Others are very useful: -title, -resizeable, -no-host-grab, etc. I would like to start multiple Xephyr'ed firejails each with a different title, and can't do that now easily (I need to wrap launch of the jail in a script, determine the window it creates, and run xdotool).

<!-- gh-comment-id:579889292 --> @jonleivent commented on GitHub (Jan 29, 2020): I added my + to the request to be able to pass Xephyr parameters directly from the Firejail command line or profile. Others are very useful: -title, -resizeable, -no-host-grab, etc. I would like to start multiple Xephyr'ed firejails each with a different title, and can't do that now easily (I need to wrap launch of the jail in a script, determine the window it creates, and run xdotool).
Author
Owner

@Futureknows commented on GitHub (Jan 31, 2020):

A better solution then Xephyr might be functioning x11 security extensions. I never have been able to get x11 security extensions working under Fedora, but some report that they work under Debian.

The problem is discussed at https://github.com/netblue30/firejail/issues/1197

Has anyone had success with xorg security extensions working with firejails?

<!-- gh-comment-id:580549420 --> @Futureknows commented on GitHub (Jan 31, 2020): A better solution then Xephyr might be functioning x11 security extensions. I never have been able to get x11 security extensions working under Fedora, but some report that they work under Debian. The problem is discussed at https://github.com/netblue30/firejail/issues/1197 Has anyone had success with xorg security extensions working with firejails?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1351
No description provided.