carderne / signal-export

Export your Signal chats to markdown files with attachments
Other
481 stars 50 forks source link

Error: /Signal/config.json not found in directory /Signal (`flatpak` install) #54

Closed dbitouze closed 2 years ago

dbitouze commented 2 years ago

Context

Issue

When I run:

$ SIGNAL_INPUT=~/.config/Signal
$ SIGNAL_OUTPUT=~/Downloads/signal-output
$ docker run --rm -it --name signal-export \
  -v ${SIGNAL_INPUT}:/Signal \
  -v ${SIGNAL_OUTPUT}:/output \
  carderne/signal-export:latest

I get: Error: /Signal/config.json not found in directory /Signal.

I suspect this comes from the flatpak install which doesn't create any ~/.config/Signal directory but I couldn't find any equivalent folder.

carderne commented 2 years ago

Just searched and according to this, the data might be stored at: $HOME/.local/share/flatpak/. Have a look around and see if you can find it. I don't use Flatpak.

dbitouze commented 2 years ago

Unfortunately:

$ tree ~/.local/share/flatpak/          
/home/bitouze/.local/share/flatpak/
├── db
└── repo
    ├── config
    ├── extensions
    ├── objects
    ├── refs
    │   ├── heads
    │   └── remotes
    ├── state
    └── tmp
        └── cache
carderne commented 2 years ago

What about this? Anyway good luck, let me know if you find it.

dbitouze commented 2 years ago

Good catch! Everything worked smoothly with:

$ SIGNAL_INPUT=~/.var/app/org.signal.Signal/config/Signal
$ SIGNAL_OUTPUT=~/Downloads/signal-output
$ docker run --rm -it --name signal-export \
  -v ${SIGNAL_INPUT}:/Signal \
  -v ${SIGNAL_OUTPUT}:/output \
  carderne/signal-export:latest

Thanks!