owl-compositor / owl

The portable Wayland compositor in Objective-C
GNU General Public License v3.0
132 stars 4 forks source link

XDG_RUNTIME_DIR not set fallback option doesn't exist #8

Open satmandu opened 2 years ago

satmandu commented 2 years ago

Maybe have a reasonable default of XDG_RUNTIME_DIR ~/Library/Application\ Support/ ?

Otherwise maybe in the error dialog suggest running launchctl setenv XDG_RUNTIME_DIR ~/Library/Application\ Support/ or something to that effect to set the variable.

bugaevc commented 2 years ago

XDG_RUNTIME_DIR basically tells Owl where to put its socket, and tells its clients where to look for the socket. It'd be useless to only set XDG_RUNTIME_DIR to some value in Owl; we have to set XDG_RUNTIME_DIR to the same value in the clients as well, so that Owl and its clients can find each other.

Setting the value for everyone through launchd is the option I'm leaning towards, yes; but this is again not something that Owl should do. We'd have to think how to do this best.