Skip to content

Programs running in urxvt not saved #105

@danhab99

Description

@danhab99

Describe the bug

I work pretty much completely using CLI programs like vim. My default terminal emulator is Urxvt. i3-resurrect doesn't retain the cwd or program that urxvt was running.

To Reproduce
Steps to reproduce the behavior:

  1. Install my dotfiles
  2. Setup a urxvt window running vim and some other program like a node script on workspace "2"
  3. Run i3-resurrect save -w 2
  4. Attempt to restore workspace 2 like this: i3-resurrect restore -w 2
  5. Programs don't restore

Expected behavior
A clear and concise description of what you expected to happen.

Programs are rerun in accordance to its cmdline

Screenshots

  • idk what to show -

System information (please complete the following information):

  • Linux distribution: Manjaro Linux x86_64 (5.10.49-1-MANJARO)
  • i3-resurrect version (output of i3-resurrect --version): i3-resurrect, version 1.4.3
  • i3 version (output of i3 -v): i3 version 4.19.1 (2021-02-01) © 2009 Michael Stapelberg and contributors
  • Python version (output of python -V): Python 3.9.6

Additional context
Add any other context about the problem here.

Layout:

{
  "border": "normal",
  "current_border_width": -1,
  "floating": "auto_off",
  "fullscreen_mode": 0,
  "geometry": {
    "x": 0,
    "y": 0,
    "width": 0,
    "height": 0
  },
  "layout": "splitv",
  "marks": [],
  "name": "2",
  "orientation": "vertical",
  "percent": null,
  "scratchpad_state": "none",
  "sticky": false,
  "type": "workspace",
  "workspace_layout": "default",
  "nodes": [
    {
      "border": "normal",
      "current_border_width": -1,
      "floating": "auto_off",
      "fullscreen_mode": 0,
      "geometry": {
        "x": 0,
        "y": 0,
        "width": 0,
        "height": 0
      },
      "layout": "splith",
      "marks": [],
      "name": null,
      "orientation": "horizontal",
      "percent": 0.8,
      "scratchpad_state": "none",
      "sticky": false,
      "type": "con",
      "workspace_layout": "default",
      "nodes": [
        {
          "border": "normal",
          "current_border_width": -1,
          "floating": "auto_off",
          "fullscreen_mode": 0,
          "geometry": {
            "x": 0,
            "y": 0,
            "width": 0,
            "height": 0
          },
          "layout": "splitv",
          "marks": [],
          "name": null,
          "orientation": "vertical",
          "percent": 0.65,
          "scratchpad_state": "none",
          "sticky": false,
          "type": "con",
          "workspace_layout": "default",
          "nodes": [
            {
              "border": "pixel",
              "current_border_width": 0,
              "floating": "auto_off",
              "fullscreen_mode": 0,
              "geometry": {
                "x": 0,
                "y": 0,
                "width": 840,
                "height": 520
              },
              "layout": "splith",
              "marks": [],
              "name": "NERD_tree_1 - (~/Documents/node/cryptochan) - VIM",
              "orientation": "none",
              "percent": 1.0,
              "scratchpad_state": "none",
              "sticky": false,
              "type": "con",
              "workspace_layout": "default",
              "swallows": [
                {
                  "class": "^URxvt$",
                  "instance": "^urxvt$"
                }
              ]
            }
          ]
        },
        {
          "border": "pixel",
          "current_border_width": 0,
          "floating": "auto_off",
          "fullscreen_mode": 0,
          "geometry": {
            "x": 0,
            "y": 0,
            "width": 840,
            "height": 520
          },
          "layout": "splith",
          "marks": [],
          "name": "dan@dan-81c9: ~/Documents/node/cryptochan",
          "orientation": "none",
          "percent": 0.35,
          "scratchpad_state": "none",
          "sticky": false,
          "type": "con",
          "workspace_layout": "default",
          "swallows": [
            {
              "class": "^URxvt$",
              "instance": "^urxvt$"
            }
          ]
        }
      ]
    },
    {
      "border": "pixel",
      "current_border_width": 0,
      "floating": "auto_off",
      "fullscreen_mode": 0,
      "geometry": {
        "x": 0,
        "y": 0,
        "width": 840,
        "height": 520
      },
      "layout": "splith",
      "marks": [],
      "name": "yarn dev",
      "orientation": "none",
      "percent": 0.19999999999999998,
      "scratchpad_state": "none",
      "sticky": false,
      "type": "con",
      "workspace_layout": "default",
      "swallows": [
        {
          "class": "^URxvt$",
          "instance": "^urxvt$"
        }
      ]
    }
  ]
}

Programs:

[
  {
    "command": [
      "/usr/bin/urxvt"
    ],
    "working_directory": "/home/dan"
  },
  {
    "command": [
      "/usr/bin/urxvt"
    ],
    "working_directory": "/home/dan"
  },
  {
    "command": [
      "/usr/bin/urxvt"
    ],
    "working_directory": "/home/dan"
  }
]

This is the project I was working on incase you were wondering.

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