mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
runtimeAssetDir called os.MkdirAll on $XDG_RUNTIME_DIR/v2raya with mode 0700. When v2rayA runs as root on a system where /run/user does not exist yet (OpenRC with elogind before any login), that created /run/user itself as 0700 root:root, and every other user then failed to get a runtime directory. The runtime directory belongs to the login manager, so use it only when it already exists and otherwise put the asset links in the configuration directory, as a service user without a session already does. A regular file there is one the user placed, so the lookup now uses it instead of replacing it with a link to the system copy. Closes #2092