[GH-ISSUE #1336] Taking XAUTHORITY out of --x11=xorg sandbox? #916

Open
opened 2026-05-05 07:08:39 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @l29ah on GitHub (Jun 14, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1336

Sometimes when i run stuff in --x11=xorg sandbox i want to operate on the clipboard/mouse selection of the sandboxed app. AFAIK, this means i need to use its Xauthority file, say, with xclip(1) or xsel(1). What would be the proper way to get it/adjust firejail to publish it? If i understand the code right, now the file exists only in the private namespace of the sandboxed app.

Originally created by @l29ah on GitHub (Jun 14, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1336 Sometimes when i run stuff in --x11=xorg sandbox i want to operate on the clipboard/mouse selection of the sandboxed app. AFAIK, this means i need to use its Xauthority file, say, with xclip(1) or xsel(1). What would be the proper way to get it/adjust firejail to publish it? If i understand the code right, now the file exists only in the private namespace of the sandboxed app.
gitea-mirror added the
enhancement
label 2026-05-05 07:08:39 -06:00
Author
Owner

@chiraag-nataraj commented on GitHub (Jun 14, 2017):

You probably want to use xpra instead - it has options to share the clipboard as well as tons of other things.

<!-- gh-comment-id:308459764 --> @chiraag-nataraj commented on GitHub (Jun 14, 2017): You probably want to use `xpra` instead - it has options to share the clipboard as well as tons of other things.
Author
Owner

@l29ah commented on GitHub (Jun 14, 2017):

On Wed, Jun 14, 2017 at 08:02:40AM -0700, ಚಿರಾಗ್ ನಟರಾಜ್ wrote:

You probably want to use xpra instead - it has options to share the clipboard as well as tons of other things.

xpra is quite slow even with mmap and disabled compression.

--
() ascii ribbon campaign - against html mail
/\ http://arc.pasp.de/ - against proprietary attachments

<!-- gh-comment-id:308460384 --> @l29ah commented on GitHub (Jun 14, 2017): On Wed, Jun 14, 2017 at 08:02:40AM -0700, ಚಿರಾಗ್ ನಟರಾಜ್ wrote: > You probably want to use `xpra` instead - it has options to share the clipboard as well as tons of other things. xpra is quite slow even with mmap and disabled compression. -- () ascii ribbon campaign - against html mail /\ http://arc.pasp.de/ - against proprietary attachments
Author
Owner

@chiraag-nataraj commented on GitHub (Jun 15, 2017):

I suppose @netblue30 could add a flag to copy over the .Xauthority...?

<!-- gh-comment-id:308606075 --> @chiraag-nataraj commented on GitHub (Jun 15, 2017): I suppose @netblue30 could add a flag to copy over the .Xauthority...?
Author
Owner

@netblue30 commented on GitHub (Jun 18, 2017):

I'll look into it.

<!-- gh-comment-id:309277712 --> @netblue30 commented on GitHub (Jun 18, 2017): I'll look into it.
Author
Owner

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

I don't know if this fixes it, but you can probably use firejail --get=<pid> /path/to/.Xauthority?

<!-- gh-comment-id:414353544 --> @chiraag-nataraj commented on GitHub (Aug 20, 2018): I don't know if this fixes it, but you can probably use `firejail --get=<pid> /path/to/.Xauthority`?
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#916
No description provided.