Skip to content

Writable files should be written into $HOME/.config/rustcraft/, and not into ../bin/... #152

@yurivict

Description

@yurivict

When installed into a read-only location under /usr/local by the package manager, rustcraft crashes:

2024-12-19T05:50:00.244151Z ERROR client::input::keyboard: Failed to create keybindings file at "/usr/local/share/rustcraft/bin/../keybindings.ron": Permission denied (os error 13)
thread 'Compute Task Pool (1)' panicked at client/src/ui/menus/solo.rs:255:36:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Abort trap

It should write files into $HOME/.config/rustcraft/ instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions