[Task]: Config and preset files still default to current working directory #4

Open
opened 2026-04-17 11:30:05 +00:00 by tgohle · 0 comments
Owner

Problem

Config and preset files are still based on a bare filename and default to the current working directory.

Current code

CONFIG_FILE = "SDG2042x.config"
PRESET_BASENAME = "SDG2042x.dat"

Why this is a problem

This means file placement depends on where the script is launched from.

If the tool is started from different directories, config and preset files can end up scattered across the filesystem. That is functional, but messy and not a good long-term behaviour.

Fix approach

Move config and preset storage to a stable XDG-style location, for example under:

~/.config/SDG2042X/

or a similar dedicated application path.

Status

Still open.
Not fixed in the current v0.2 working copy.

### Problem Config and preset files are still based on a bare filename and default to the current working directory. ### Current code ```python CONFIG_FILE = "SDG2042x.config" PRESET_BASENAME = "SDG2042x.dat" ``` ### Why this is a problem This means file placement depends on where the script is launched from. If the tool is started from different directories, config and preset files can end up scattered across the filesystem. That is functional, but messy and not a good long-term behaviour. ### Fix approach Move config and preset storage to a stable XDG-style location, for example under: ```text ~/.config/SDG2042X/ ``` or a similar dedicated application path. ### Status Still open. Not fixed in the current v0.2 working copy.
tgohle added the
area/config
severity
low
3
state
confirmed
2
kind
task
3
labels 2026-04-17 11:43:16 +00:00
tgohle self-assigned this 2026-04-17 12:09:17 +00:00
tgohle changed title from Config and preset files still default to current working directory to [Task]: Config and preset files still default to current working directory 2026-04-18 11:21:13 +00:00
Sign in to join this conversation.
No description provided.