[GH-ISSUE #2261] Flameshot not working #1510

Closed
opened 2026-05-05 08:10:30 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @kabo on GitHub (Nov 15, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2261

Hi,

I like using flameshot for taking screen shots, but it doesn't work when used with firejail. I'm running Debian Buster.

Running flameshot with firejail:

kabo@esk:~$ flameshot
Reading profile /etc/firejail/flameshot.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Parent pid 25259, child pid 25260
Warning: skipping pki for private /etc
Warning: skipping crypto-policies for private /etc
Private /etc installed in 21.25 ms
1 program installed in 3.22 ms
Child process initialized in 91.90 ms
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: Version 4 or later of flush extension not found
libGL error: failed to load driver: i915

With --no-profile:

kabo@esk:~$ firejail --noprofile flameshot
Parent pid 27362, child pid 27363
Child process initialized in 42.89 ms
Warning: an existing sandbox was detected. /usr/bin/flameshot will run without any additional sandboxing features
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setCompositionMode: Painter not active
QPainter::translate: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setBrush: Painter not active
$ firejail --version
firejail version 0.9.56

Compile time support:
        - AppArmor support is enabled
        - AppImage support is enabled
        - chroot support is enabled
        - file and directory whitelisting support is enabled
        - file transfer support is enabled
        - networking support is enabled
        - overlayfs support is enabled
        - private-home support is enabled
        - seccomp-bpf support is enabled
        - user namespace support is enabled
        - X11 sandboxing support is enabled
Originally created by @kabo on GitHub (Nov 15, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2261 Hi, I like using flameshot for taking screen shots, but it doesn't work when used with firejail. I'm running Debian Buster. Running flameshot with firejail: ``` kabo@esk:~$ flameshot Reading profile /etc/firejail/flameshot.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Parent pid 25259, child pid 25260 Warning: skipping pki for private /etc Warning: skipping crypto-policies for private /etc Private /etc installed in 21.25 ms 1 program installed in 3.22 ms Child process initialized in 91.90 ms Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. libGL error: MESA-LOADER: failed to retrieve device information libGL error: Version 4 or later of flush extension not found libGL error: failed to load driver: i915 ``` With `--no-profile`: ``` kabo@esk:~$ firejail --noprofile flameshot Parent pid 27362, child pid 27363 Child process initialized in 42.89 ms Warning: an existing sandbox was detected. /usr/bin/flameshot will run without any additional sandboxing features Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::setRenderHint: Painter must be active to set rendering hints QPainter::setCompositionMode: Painter not active QPainter::translate: Painter not active QPainter::setPen: Painter not active QPainter::setBrush: Painter not active QPainter::setBrush: Painter not active ``` ``` $ firejail --version firejail version 0.9.56 Compile time support: - AppArmor support is enabled - AppImage support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ```
Author
Owner

@kabo commented on GitHub (Nov 15, 2018):

If I comment out no3d and private-tmp it works.

<!-- gh-comment-id:439214771 --> @kabo commented on GitHub (Nov 15, 2018): If I comment out `no3d` and `private-tmp` it works.
Author
Owner

@SkewedZeppelin commented on GitHub (Nov 15, 2018):

iirc no3d is needed for some programs when running under wayland
but I don't know why private-tmp would cause issue

we will have to adjust and note the profile

<!-- gh-comment-id:439215741 --> @SkewedZeppelin commented on GitHub (Nov 15, 2018): iirc no3d is needed for some programs when running under wayland but I don't know why private-tmp would cause issue we will have to adjust and note the profile
Author
Owner

@kabo commented on GitHub (Nov 16, 2018):

@SkewedZeppelin If I only comment out no3d I don't get the error, but nothing happens when I click Take screenshot.

<!-- gh-comment-id:439532318 --> @kabo commented on GitHub (Nov 16, 2018): @SkewedZeppelin If I only comment out `no3d` I don't get the error, but nothing happens when I click `Take screenshot`.
Author
Owner

@SkewedZeppelin commented on GitHub (Nov 16, 2018):

@kabo hmm, maybe private-tmp breaks the new Mutter screencast API

<!-- gh-comment-id:439551939 --> @SkewedZeppelin commented on GitHub (Nov 16, 2018): @kabo hmm, maybe private-tmp breaks the new Mutter screencast API
Author
Owner

@rusty-snake commented on GitHub (Jun 26, 2019):

@kabo still an issue?

For me: Fedora 30, GNOME + Wayland, firejail 0.9.61, flameshot 0.6.0. it works without changes.

<!-- gh-comment-id:505825265 --> @rusty-snake commented on GitHub (Jun 26, 2019): @kabo still an issue? For me: Fedora 30, GNOME + Wayland, firejail 0.9.61, flameshot 0.6.0. it works without changes.
Author
Owner

@rusty-snake commented on GitHub (Aug 22, 2019):

@kabo I'm closing here due to inactivity, please fell free to reopen if you still have this issue.

<!-- gh-comment-id:523836851 --> @rusty-snake commented on GitHub (Aug 22, 2019): @kabo I'm closing here due to inactivity, please fell free to reopen if you still have this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1510
No description provided.