8000 Create ipc socket for mpv correctly with mkstemp · Issue #43 · darkhz/invidtui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Create ipc socket for mpv correctly with mkstemp #43
Open
@paulie-g

Description

@paulie-g

Enhancement: Creating a socket with a fixed filename for mpv control, in $HOME/.config/invidtui no less, doesn't make sense. (If you wanted to do single instance enforcement, the way to do it would be with the standard PID file idiom.) Create the socket in env(TMPDIR) | '/tmp' + whatever you get back from the golang equivalent of mkdtemp. For bonus points, include the current PID in template. This way a crash doesn't require the user to manually remove the socket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0