librewolf/arch
13
62
Fork
You've already forked arch
16

Ensure FUSE mount has correct permissions #28

Open
bandogora wants to merge 1 commit from bandogora/librewolf-arch:fuse-isolation into master
pull from: bandogora/librewolf-arch:fuse-isolation
merge into: librewolf:master
librewolf:master
librewolf:jack
librewolf:aarch64
First-time contributor
Copy link

I've noticed these errors plus a bunch of warnings when compiling locally:

fusermount3: failed to access mountpoint /run/user/1000/doc: Permission denied
error: fuse init failed: Can't mount path /run/user/1000/doc

This should ensure there are no permissions issues in the XDG_RUNTIME_DIR.

Changes:

  • Explicitly create XDG_RUNTIME_DIR
  • Explicitly set permissions for XDG_RUNTIME_DIR (chmod 0700)
  • Sanitize display and subsystem environment

This strips the Wayland and Portal variables out of the build environment so the build is forced to use the isolated X11 framebuffer provided by xvfb-run:

unset WAYLAND_DISPLAY
export GTK_USE_PORTAL=0
  • Forcing an X11-profiled build shouldn't have much of an effect (if any) on performance vs a Wayland-profiled build.

These exports should help avoid DBus timeouts that hang the build, or at least help cleanup the build log:

export NO_AT_BRIDGE=1
export GNOME_KEYRING_CONTROL=""
I've noticed these errors plus a bunch of warnings when compiling locally: ``` fusermount3: failed to access mountpoint /run/user/1000/doc: Permission denied error: fuse init failed: Can't mount path /run/user/1000/doc ``` This should ensure there are no permissions issues in the `XDG_RUNTIME_DIR`. Changes: - Explicitly create `XDG_RUNTIME_DIR` - Explicitly set permissions for `XDG_RUNTIME_DIR` (chmod 0700) - Sanitize display and subsystem environment This strips the Wayland and Portal variables out of the build environment so the build is forced to use the isolated X11 framebuffer provided by `xvfb-run`: ``` unset WAYLAND_DISPLAY export GTK_USE_PORTAL=0 ``` - Forcing an X11-profiled build shouldn't have much of an effect (if any) on performance vs a Wayland-profiled build. These exports should help avoid DBus timeouts that hang the build, or at least help cleanup the build log: ``` export NO_AT_BRIDGE=1 export GNOME_KEYRING_CONTROL="" ```
- Explicitly create `XDG_RUNTIME_DIR`
- Set correct permissions for `XDG_RUNTIME_DIR`
- Sanitize display and subsystem environment
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u fuse-isolation:bandogora-fuse-isolation
git switch bandogora-fuse-isolation

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff bandogora-fuse-isolation
git switch bandogora-fuse-isolation
git rebase master
git switch master
git merge --ff-only bandogora-fuse-isolation
git switch bandogora-fuse-isolation
git rebase master
git switch master
git merge --no-ff bandogora-fuse-isolation
git switch master
git merge --squash bandogora-fuse-isolation
git switch master
git merge --ff-only bandogora-fuse-isolation
git switch master
git merge bandogora-fuse-isolation
git push origin master
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
librewolf/arch!28
Reference in a new issue
librewolf/arch
No description provided.
Delete branch "bandogora/librewolf-arch:fuse-isolation"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?