Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manuellr/docker-flameshot

Flameshot (Dockerized) - Powerful yet simple to use screenshot software for GNU/Linux
https://github.com/manuellr/docker-flameshot

docker docker-image flameshoot gnu-linux gplv3

Last synced: 1 day ago
JSON representation

Flameshot (Dockerized) - Powerful yet simple to use screenshot software for GNU/Linux

Awesome Lists containing this project

README

        

# Docker-Flameshot

[![](https://img.shields.io/docker/pulls/manuellr/flameshot.svg)](https://hub.docker.com/r/manuellr/flameshot 'DockerHub')

Dockerized - [Flameshot](https://github.com/lupoDharkael/flameshot)

# Running
Based on https://gist.github.com/slok/acb235ae30129307fd53

```bash
KEY=$(xauth list | grep $(hostname) | awk '{ print $3 }' | head -n 1)
DCK_HOST=docker-flameshot
xauth add $DCK_HOST/unix:0 . $KEY

docker run -it --rm \
-e DISPLAY=unix$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ~/.Xauthority:/root/.Xauthority \
-e XAUTHORITY=/root/.Xauthority \
-h $DCK_HOST \
manuellr/flameshot
```

### Others arguments could be added
- `--env="QT_X11_NO_MITSHM=1"`
- `--privileged`: Fix LibGL errors
- `--net=host`

## Troubleshooting
### Could not connect to display
Maybe the container haven't access to the GUI because it run with root permission.

Try this command:
```bash
xhost local:root
```