GithubHelp home page GithubHelp logo

Comments (8)

johanmalm avatar johanmalm commented on June 28, 2024 1

I'm glad that worked.

I'm on Arch and I think systemd sets XDG_RUNTIME_DIR. I'm not sure what the advice is for non-systemd setups.

Presumably you could just add export XDG_RUNTIME_DIR=$HOME/.run to .profile, .zshrc, .zshenv or similar. I'm not sure what the "official" advice.

from labwc.

johanmalm avatar johanmalm commented on June 28, 2024

It looks like you've used an Openbox rc.xml file. The syntaxes are fairly close, but just taking the openbox files is a bad starting point.

Try without an rc.xml to just see if you can get it started with default settings.

You need a font installed (e.g. ttf-dejavu). You probably do already, but just to make sure.

Try with:

cd $HOME
mkdir foo
XDG_RUNTIME_DIR=$HOME/foo labwc

from labwc.

wastlnd avatar wastlnd commented on June 28, 2024

Hey @johanmalm thanks for your help, actually you were right, trying to run labwc without rc.xml works without throwing errors. How could I set a proper xdg runtime directory to be set at login? I'm using zsh.

from labwc.

wastlnd avatar wastlnd commented on June 28, 2024

Thanks again @johanmalm , I don't know if there's a "best" solution for a systemd-less system, but in case I think Id have to create this .run directory by myself, right?

from labwc.

Consolatis avatar Consolatis commented on June 28, 2024

I think Id have to create this .run directory by myself, right?

Yes.

Usually $XDG_RUNTIME_DIR is located on some tmpfs but technically its not required to be on a tmpfs. Usually its /run/user/1000 for uid 1000. This has the benefit of being empty on system restart. You can use mkdir -p "$XDG_RUNTIME_DIR" in your .profile to create a directory if it doesn't exist.

from labwc.

johanmalm avatar johanmalm commented on June 28, 2024

I've tried running labwc with a very small setup on Arch a couple of times. The only dependency that was non-obvious (to me) was polkit and ttf-dejavu (or whatever).

I'll close this for now, but if you find a way to run without polkit, then let us know and we document it somewhere.

from labwc.

Narrat avatar Narrat commented on June 28, 2024

Didn't test that yet, but somewhere on my ToDo is Polkit vs Seatd setup.
And there are some sparse ressources I stumbled upon so far:
https://github.com/swaywm/sway/wiki/Running-Sway-with-seatd%2C-elogind-or-systemd%E2%80%90logind#seatd
https://wiki.archlinux.org/title/Sway#Starting

And one thing I don't get from the initial post is whether seatd service is enabled and started (or if seatd-launch is used)

from labwc.

wastlnd avatar wastlnd commented on June 28, 2024

@johanmalm and @Narrat, thanks again for your suggestions, I didn't really used seatd as a service (the runit service requires dbus, that I have disabled), but simply type:
Sudo seatd -u $user | labwc
Instead of fiddling with the shell for the runtime directory, I found another option, that is installing pam_rundir, that automatically creates the /run/user/$uid directory and exports the variable. That should, in fact, require polkit, if I'm not wrong.

from labwc.

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.