Giter Site home page Giter Site logo

Comments (6)

emersion avatar emersion commented on September 27, 2024

XDG_RUNTIME_DIR is required for Wayland to work. It's set by systemd, and needs to be set via other means on platforms without systemd: https://man.sr.ht/~kennylevinsen/seatd/#xdg_runtime_dir-not-set

from cage.

ehawman avatar ehawman commented on September 27, 2024

Raspberry Pi OS uses systemd and running echo $XDG_RUNTIME_DIR results in /run/user/1000, which indicates that it is being set in a normal environment. I'm attempting to diagnose the disconnect between the system's defined variable and cage's inability to see/use that variable.

from cage.

emersion avatar emersion commented on September 27, 2024

Hm, weird.

Cage is creating a sandboxed window environment

No, cage is just an executable and simply calls getenv on startup:

cage/cage.c

Line 279 in e7d8780

/* Wayland requires XDG_RUNTIME_DIR to be set. */

Can you check whether cage is suid-root by any chance? If so, env vars would be reset on startup. Note that proper cage setups shouldn't use suid-root.

from cage.

ehawman avatar ehawman commented on September 27, 2024

You're asking about the permissions of /usr/bin/cage?
-rwxr-xr-x 1 root root 67592 Oct 12 2022 cage
I installed via sudo apt install cage. Version is 0.1.4.
My user is a sudoer but I'm not running the command with sudo.

from cage.

emersion avatar emersion commented on September 27, 2024

Well, I don't know. Very unlikely that this is a Cage problem though.

from cage.

ehawman avatar ehawman commented on September 27, 2024

Hmmm ok. Thank you for looking at it.

from cage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.