[GH-ISSUE #3203] Deepin-Screen-Recorder does not work as not started firejailed by default #2002

Closed
opened 2026-05-05 08:40:26 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @ericschdt on GitHub (Feb 5, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3203

sudo firecfg does not firejail deepin-screen-recorder and thus

/usr/bin/deepin-screen-recorder 

does not work:

translatePath after feedback: "/usr/share/libdtk-2.1.1/DWidget/translations/dtkwidget_de"
"deepin-screen-recorder" can not find qm files
requestActivate() called for  QWidgetWindow(0x559bd6954610, name="MainWindowClassWindow")  which has Qt::WindowDoesNotAcceptFocus set.
Not found mp4_framerate option in config file, mp4 use framerate 25
mp4 framerate  25
Error
"ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers"
"  built with gcc 9.2.0 (GCC)"
"  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3"
"  libavutil      56. 31.100 / 56. 31.100"
"  libavcodec     58. 54.100 / 58. 54.100"
"  libavformat    58. 29.100 / 58. 29.100"
"  libavdevice    58.  8.100 / 58.  8.100"
"  libavfilter     7. 57.100 /  7. 57.100"
"  libswscale      5.  5.100 /  5.  5.100"
"  libswresample   3.  5.100 /  3.  5.100"
"  libpostproc    55.  5.100 / 55.  5.100"
"[x11grab @ 0x55e856f6e300] Cannot open display :0+0,79, error 1."
":0+0,79: Input/output error"
""

Invoking

firejail /usr/bin/deepin-screen-recorder

works however fine:

 firejail deepin-screen-recorder 
Reading profile /etc/firejail/default.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc

** Note: you can use --noprofile to disable default.profile **

Parent pid 13179, child pid 13180
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Child process initialized in 214.55 ms
translatePath after feedback: "/usr/share/libdtk-2.1.1/DWidget/translations/dtkwidget_de"
"deepin-screen-recorder" can not find qm files
requestActivate() called for  QWidgetWindow(0x5585fafeb610, name="MainWindowClassWindow")  which has Qt::WindowDoesNotAcceptFocus set.
Not found mp4_framerate option in config file, mp4 use framerate 25
mp4 framerate  25
Error
"Warning: an existing sandbox was detected. /usr/bin/ffmpeg will run without any additional sandboxing features"
"ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers"
"  built with gcc 9.2.0 (GCC)"
"  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3"
"  libavutil      56. 31.100 / 56. 31.100"
"  libavcodec     58. 54.100 / 58. 54.100"
"  libavformat    58. 29.100 / 58. 29.100"
"  libavdevice    58.  8.100 / 58.  8.100"
"  libavfilter     7. 57.100 /  7. 57.100"
"  libswscale      5.  5.100 /  5.  5.100"
"  libswresample   3.  5.100 /  3.  5.100"
"  libpostproc    55.  5.100 / 55.  5.100"
"[x11grab @ 0x55689466c100] Stream #0: not enough frames to estimate rate; consider increasing probesize"
"Input #0, x11grab, from ':0+0,79':"
"  Duration: N/A, start: 1580908754.571995, bitrate: N/A"
"    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 2560x1360, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc"
"Stream mapping:"
"  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))"
"Press [q] to stop, [?] for help"
"[libx264 @ 0x556894677b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2"
"[libx264 @ 0x556894677b00] profile High, level 5.0, 4:2:0, 8-bit"
"[libx264 @ 0x556894677b00] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00"
"Output #0, mp4, to '/tmp/deepin-screen-recorder_konsole_20200205141914.mp4':"
"  Metadata:"
"    encoder         : Lavf58.29.100"
"    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 2560x1360, q=-1--1, 25 fps, 12800 tbn, 25 tbc"
"    Metadata:"
"      encoder         : Lavc58.54.100 libx264"
"    Side data:"
"      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1"
"frame=   19 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=4 drop=2 speed=   0x    \rframe=   32 fps= 31 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=4 drop=2 speed=   0x    \rframe=   43 fps= 28 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=4 drop=2 speed=   0x    \rframe=   59 fps= 27 q=30.0 size=       0kB time=00:00:00.24 bitrate=   1.6kbits/s dup=16 drop=2 speed=0.108x    \rframe=   72 fps= 26 q=30.0 size=     256kB time=00:00:00.76 bitrate=2759.6kbits/s dup=28 drop=2 speed=0.279x    \rframe=   92 fps= 26 q=30.0 size=     512kB time=00:00:01.56 bitrate=2688.8kbits/s dup=47 drop=2 speed=0.442x    \rframe=   92 fps= 13 q=-1.0 Lsize=    1256kB time=00:00:03.56 bitrate=2889.2kbits/s dup=47 drop=2 speed=0.51x    "
"video:1254kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.149788%"
"[libx264 @ 0x556894677b00] frame I:5     Avg QP:16.37  size:147021"
"[libx264 @ 0x556894677b00] frame P:29    Avg QP:19.55  size: 12328"
"[libx264 @ 0x556894677b00] frame B:58    Avg QP:22.25  size:  3284"
"[libx264 @ 0x556894677b00] consecutive B-frames: 13.0%  6.5%  6.5% 73.9%"
"[libx264 @ 0x556894677b00] mb I  I16..4: 45.6% 27.4% 26.9%"
"[libx264 @ 0x556894677b00] mb P  I16..4:  6.4%  4.6%  2.2%  P16..4:  4.1%  0.1%  0.2%  0.0%  0.0%    skip:82.5%"
"[libx264 @ 0x556894677b00] mb B  I16..4:  2.7%  1.2%  0.7%  B16..8:  1.8%  0.0%  0.0%  direct: 0.0%  skip:93.6%  L0:51.0% L1:48.9% BI: 0.0%"
"[libx264 @ 0x556894677b00] 8x8 transform intra:29.7% inter:94.6%"
"[libx264 @ 0x556894677b00] coded y,uvDC,uvAC intra: 18.2% 12.0% 6.0% inter: 0.4% 0.3% 0.0%"
"[libx264 @ 0x556894677b00] i16 v,h,dc,p: 45% 50%  1%  4%"
"[libx264 @ 0x556894677b00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 15% 32%  0%  0%  0%  1%  0%  1%"
"[libx264 @ 0x556894677b00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46% 23% 13%  2%  3%  3%  3%  3%  3%"
"[libx264 @ 0x556894677b00] i8c dc,h,v,p: 76% 19%  5%  0%"
"[libx264 @ 0x556894677b00] Weighted P-Frames: Y:13.8% UV:13.8%"
"[libx264 @ 0x556894677b00] ref P L0: 29.6%  1.3%  5.0% 63.8%  0.5%"
"[libx264 @ 0x556894677b00] ref B L0: 42.1% 57.3%  0.6%"
"[libx264 @ 0x556894677b00] ref B L1: 97.7%  2.3%"
"[libx264 @ 0x556894677b00] kb/s:2789.40"
"Exiting normally, received signal 15."
""
QThread: Destroyed while thread is still running

Parent is shutting down, bye...

System

firejail 0.9.62
Archlinux KDE

Originally created by @ericschdt on GitHub (Feb 5, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3203 `sudo firecfg` does not firejail deepin-screen-recorder and thus ``` /usr/bin/deepin-screen-recorder ``` does not work: ``` translatePath after feedback: "/usr/share/libdtk-2.1.1/DWidget/translations/dtkwidget_de" "deepin-screen-recorder" can not find qm files requestActivate() called for QWidgetWindow(0x559bd6954610, name="MainWindowClassWindow") which has Qt::WindowDoesNotAcceptFocus set. Not found mp4_framerate option in config file, mp4 use framerate 25 mp4 framerate 25 Error "ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers" " built with gcc 9.2.0 (GCC)" " configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3" " libavutil 56. 31.100 / 56. 31.100" " libavcodec 58. 54.100 / 58. 54.100" " libavformat 58. 29.100 / 58. 29.100" " libavdevice 58. 8.100 / 58. 8.100" " libavfilter 7. 57.100 / 7. 57.100" " libswscale 5. 5.100 / 5. 5.100" " libswresample 3. 5.100 / 3. 5.100" " libpostproc 55. 5.100 / 55. 5.100" "[x11grab @ 0x55e856f6e300] Cannot open display :0+0,79, error 1." ":0+0,79: Input/output error" "" ``` Invoking ``` firejail /usr/bin/deepin-screen-recorder ``` works however fine: ```  firejail deepin-screen-recorder Reading profile /etc/firejail/default.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc ** Note: you can use --noprofile to disable default.profile ** Parent pid 13179, child pid 13180 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Child process initialized in 214.55 ms translatePath after feedback: "/usr/share/libdtk-2.1.1/DWidget/translations/dtkwidget_de" "deepin-screen-recorder" can not find qm files requestActivate() called for QWidgetWindow(0x5585fafeb610, name="MainWindowClassWindow") which has Qt::WindowDoesNotAcceptFocus set. Not found mp4_framerate option in config file, mp4 use framerate 25 mp4 framerate 25 Error "Warning: an existing sandbox was detected. /usr/bin/ffmpeg will run without any additional sandboxing features" "ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers" " built with gcc 9.2.0 (GCC)" " configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3" " libavutil 56. 31.100 / 56. 31.100" " libavcodec 58. 54.100 / 58. 54.100" " libavformat 58. 29.100 / 58. 29.100" " libavdevice 58. 8.100 / 58. 8.100" " libavfilter 7. 57.100 / 7. 57.100" " libswscale 5. 5.100 / 5. 5.100" " libswresample 3. 5.100 / 3. 5.100" " libpostproc 55. 5.100 / 55. 5.100" "[x11grab @ 0x55689466c100] Stream #0: not enough frames to estimate rate; consider increasing probesize" "Input #0, x11grab, from ':0+0,79':" " Duration: N/A, start: 1580908754.571995, bitrate: N/A" " Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 2560x1360, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc" "Stream mapping:" " Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))" "Press [q] to stop, [?] for help" "[libx264 @ 0x556894677b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2" "[libx264 @ 0x556894677b00] profile High, level 5.0, 4:2:0, 8-bit" "[libx264 @ 0x556894677b00] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00" "Output #0, mp4, to '/tmp/deepin-screen-recorder_konsole_20200205141914.mp4':" " Metadata:" " encoder : Lavf58.29.100" " Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 2560x1360, q=-1--1, 25 fps, 12800 tbn, 25 tbc" " Metadata:" " encoder : Lavc58.54.100 libx264" " Side data:" " cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1" "frame= 19 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=4 drop=2 speed= 0x \rframe= 32 fps= 31 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=4 drop=2 speed= 0x \rframe= 43 fps= 28 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=4 drop=2 speed= 0x \rframe= 59 fps= 27 q=30.0 size= 0kB time=00:00:00.24 bitrate= 1.6kbits/s dup=16 drop=2 speed=0.108x \rframe= 72 fps= 26 q=30.0 size= 256kB time=00:00:00.76 bitrate=2759.6kbits/s dup=28 drop=2 speed=0.279x \rframe= 92 fps= 26 q=30.0 size= 512kB time=00:00:01.56 bitrate=2688.8kbits/s dup=47 drop=2 speed=0.442x \rframe= 92 fps= 13 q=-1.0 Lsize= 1256kB time=00:00:03.56 bitrate=2889.2kbits/s dup=47 drop=2 speed=0.51x " "video:1254kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.149788%" "[libx264 @ 0x556894677b00] frame I:5 Avg QP:16.37 size:147021" "[libx264 @ 0x556894677b00] frame P:29 Avg QP:19.55 size: 12328" "[libx264 @ 0x556894677b00] frame B:58 Avg QP:22.25 size: 3284" "[libx264 @ 0x556894677b00] consecutive B-frames: 13.0% 6.5% 6.5% 73.9%" "[libx264 @ 0x556894677b00] mb I I16..4: 45.6% 27.4% 26.9%" "[libx264 @ 0x556894677b00] mb P I16..4: 6.4% 4.6% 2.2% P16..4: 4.1% 0.1% 0.2% 0.0% 0.0% skip:82.5%" "[libx264 @ 0x556894677b00] mb B I16..4: 2.7% 1.2% 0.7% B16..8: 1.8% 0.0% 0.0% direct: 0.0% skip:93.6% L0:51.0% L1:48.9% BI: 0.0%" "[libx264 @ 0x556894677b00] 8x8 transform intra:29.7% inter:94.6%" "[libx264 @ 0x556894677b00] coded y,uvDC,uvAC intra: 18.2% 12.0% 6.0% inter: 0.4% 0.3% 0.0%" "[libx264 @ 0x556894677b00] i16 v,h,dc,p: 45% 50% 1% 4%" "[libx264 @ 0x556894677b00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 15% 32% 0% 0% 0% 1% 0% 1%" "[libx264 @ 0x556894677b00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46% 23% 13% 2% 3% 3% 3% 3% 3%" "[libx264 @ 0x556894677b00] i8c dc,h,v,p: 76% 19% 5% 0%" "[libx264 @ 0x556894677b00] Weighted P-Frames: Y:13.8% UV:13.8%" "[libx264 @ 0x556894677b00] ref P L0: 29.6% 1.3% 5.0% 63.8% 0.5%" "[libx264 @ 0x556894677b00] ref B L0: 42.1% 57.3% 0.6%" "[libx264 @ 0x556894677b00] ref B L1: 97.7% 2.3%" "[libx264 @ 0x556894677b00] kb/s:2789.40" "Exiting normally, received signal 15." "" QThread: Destroyed while thread is still running Parent is shutting down, bye... ``` ### System firejail 0.9.62 Archlinux KDE
Author
Owner

@ghost commented on GitHub (Feb 6, 2020):

sudo firecfg does not firejail deepin-screen-recorder and thus
/usr/bin/deepin-screen-recorder
does not work:

We don't have a deepin-screen-recorder.profile currently. You can open a PR to add it to the collection, so firecfg can generate the necessary symlink in /usr/local/bin. Until that is merged you can generate the symlink manually in /usr/local/bin. After doing so running 'deepin-screen-recorder' will start sandboxed. Do note the difference in path specification. Using '/usr/bin/deepin-screen-recorder' will never run it through firejail.

<!-- gh-comment-id:583119697 --> @ghost commented on GitHub (Feb 6, 2020): > sudo firecfg does not firejail deepin-screen-recorder and thus > /usr/bin/deepin-screen-recorder > does not work: We don't have a _deepin-screen-recorder.profile_ currently. You can open a PR to add it to the collection, so firecfg can generate the necessary symlink in /usr/local/bin. Until that is merged you can generate the symlink manually in /usr/local/bin. After doing so running 'deepin-screen-recorder' will start sandboxed. Do note the difference in path specification. Using '/usr/bin/deepin-screen-recorder' will **never** run it through firejail.
Author
Owner

@ericschdt commented on GitHub (Feb 7, 2020):

Until that is merged you can generate the symlink manually in /usr/local/bin. After doing so running 'deepin-screen-recorder' will start sandboxed.

Thanks I will open PR. Symlinking already it made working. :)

<!-- gh-comment-id:583566483 --> @ericschdt commented on GitHub (Feb 7, 2020): > Until that is merged you can generate the symlink manually in /usr/local/bin. After doing so running 'deepin-screen-recorder' will start sandboxed. Thanks I will open PR. Symlinking already it made working. :)
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#2002
No description provided.