Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wayland: Run a browser with reduced privileges [Solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Fri Jun 04, 2021 2:28 pm    Post subject: Reply with quote

I had kind of forgotten about this thread, then today when I was trying to run an Xdialog script (under wayland) and it balked with some oddities, then I finally realized it was related to your problem, and your solution of adding parms (to be passed to xwayland)

I had already added parms once, to set the dpi properly (new 4k monitor) so I went back and remembered that you had added the -auth stuff early, so I modified the patch and recompiled wlroots (and stuff depending on it).

Code:
Xwayland :0 -dpi 163 -auth /home/don/.Xauthority -rootless -terminate -core -listenfd 20 -listenfd 21 -wm 24


Lo and behold, the auth pass through works. *two thumbs up*

Note: the only other thing I did was add read permissions to .Xauthority in my home dir.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Wed Jun 09, 2021 8:35 pm    Post subject: Reply with quote

A new way to pass parms to Xwayland, that doesn't involve me compiling the parms in.

I put a question on the wlroots git about it, and the reply was ... interesting. I didn't think it would work but it did.

1st create a shell script
Code:
$ cat bin/Xwayland.sh
#!/bin/sh

authfile=$HOME/.Xauthority

exec /home/don/bin/Xwayland -dpi 163 -auth $authfile "$@"


Then I took out the hard coded stuff from wlroots, recompiled, rebooted and checked it.

Code:
/home/don/bin/Xwayland -dpi 163 -auth /home/don/.Xauthority :0 -rootless -terminate -core -listenfd 20 -listenfd 21 -wm 24


I hadn't tried it this way in the past, I added them to the end of the line, but it didn't seem to work.
Anyway, just another way to pass some X parms.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum