Skip to content

directory config not respected #129

@laur89

Description

@laur89

Describe the bug
config.json.directory is not respected - data is still saved into the default location of ~/.i3/i3-resurrect/

To Reproduce
Steps to reproduce the behavior:

$ cat ~/.config/i3-resurrect/config.json 
{
  "directory": "/tmp/test/",
  "window_command_mappings": [
    {
      "class": "Gnome-terminal",
      "command": "gnome-terminal"
    }
  ],
  "window_swallow_criteria": {},
  "terminals": [
    "Gnome-terminal",
    "Alacritty"
  ]
}
$ mkdir /tmp/test
$ i3-resurrect save -w 1
$ ls -lA /tmp/test
total 0

Expected behavior
Saved profiles should be written into /tmp/test

System information

  • Linux distribution: debian testing
  • i3-resurrect version: 1.4.5 (from pypi)
  • i3 version: 4.24-non-git
  • Python version: 3.13.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions