Respect the XDG standard on linux in regards to the config files

Open
#654 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Start by locating the code that handles the legacy ~/.binaryninja configuration path and checking how configuration-related environment variables are read. Compare the behavior with the freedesktop XDG Base Directory specification; done means configuration uses the XDG location or applicable environment-variable value instead of legacy dotfiles on Linux.

Written by the indexing model from the issue text.

Description

Component: Core Effort: Medium Impact: Low

The freedesktop project recommands application on linux to use ~/.config (or the value in various environment variables) as a way to store configuration files instead of the legacy dotfiles. ( ~/.binaryninja/ ).

It would be nice for binary ninja to respect that recommandation at some point in the future, in order to declutter the home directory.

More info here:

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
https://unix.stackexchange.com/questions/24347/why-do-some-applications-use-config-appname-for-their-config-data-while-other

Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.