On 11/09/2026 09:50, VA wrote:
When pressing the scan toolbar button in gscan2pdf (or from the menu), no dialog is opened and this error pops in terminal:

Thanks for the report. I'll fix the bug in scantpaper 3.0.18, and bump gscan2pdf to 3.0.18 to depend on it.

The crash is caused purely by the old config shape, so the workaround is to patch the config file to the exact shape the fix will produce.

## Recommended workaround

Quit scantpaper, then run (matches what the fixed build will do automatically):

```bash
python3 - <<'EOF'
import json, pathlib
p = pathlib.Path("~/.config/scantpaperrc").expanduser()
d = json.loads(p.read_text())
for profile in d.get("profile", {}).values():
    if isinstance(profile, dict):
        profile.setdefault("frontend", {})
        profile.setdefault("backend", [])
p.write_text(json.dumps(d, indent=2, sort_keys=True) + "\n")
EOF
```

That adds a `"frontend": {}` (and `"backend": []` if missing) to every named profile, so the app starts and keeps the profiles' scanner options. Note `~/.config/scantpaperrc` is created by copying the old `gscan2pdfrc` on first run, so the profile lives in that file.

## Fallbacks if you can't run the snippet

- **Manual edit:** in `~/.config/scantpaperrc`, the `"profile"` section looks like
  ```json
  "profile": { "default": { "backend": [ {"resolution": 300} ] } }
  ```
  change each entry to `{ "frontend": {}, "backend": [...] }`.

- **Nuclear:** back up both `~/.config/scantpaperrc` and `~/.config/gscan2pdfrc`, then delete `scantpaperrc`. The app starts with defaults (profiles are lost, but the backups keep them for re-adding after the fix).

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to