Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SocketPath::defaultSocketPath() should better format and respect USER even if TMPDIR unset #10

Open
whisperity opened this issue Nov 14, 2022 · 0 comments
Labels
Kind: Enhancement 🔮 New feature or request Platform: Unix 🐧 Related to Unix/Linux-specifics Target: Core 💥 Core architectural support library

Comments

@whisperity
Copy link
Owner

Currently, if XDG_RUNTIME_DIR is not set and TMPDIR also is not set, the code immediately falls back to /tmp/mnmx even though we could at least add the user's name into the file path anyway.


Moreover, it might be worth first to try to create also a directory in the temporary location (outside XDG_RUNTIME_DIR, anyway), similarly to what tmux and abduco do.

@whisperity whisperity added Kind: Enhancement 🔮 New feature or request Target: Core 💥 Core architectural support library labels Nov 14, 2022
@whisperity whisperity changed the title Refactor SocketPath::defaultSocketPath() to better format and respect USER even if TMPDIR unset SocketPath::defaultSocketPath() should better format and respect USER even if TMPDIR unset Nov 14, 2022
@whisperity whisperity added the Platform: Unix 🐧 Related to Unix/Linux-specifics label Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kind: Enhancement 🔮 New feature or request Platform: Unix 🐧 Related to Unix/Linux-specifics Target: Core 💥 Core architectural support library
Projects
None yet
Development

No branches or pull requests

1 participant