[GH-ISSUE #1301] Spotify takes too long to open in firejail 0.9.46 #887

Closed
opened 2026-05-05 07:03:05 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @qazip on GitHub (May 22, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1301

This is the output after running spotify:


Reading profile /etc/firejail/spotify.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Parent pid 9419, child pid 9420
Child process initialized in 56.47 ms
[0522/175846:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak
[0522/175846:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak
[0522/175846:ERROR:gl_implementation.cc(223)] Failed to load libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[0522/175846:ERROR:gpu_child_thread.cc(390)] Exiting GPU process due to errors during initialization
[0522/175907:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
[0522/175907:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.

I'm using Ubuntu 16.04 and I did "sudo firecfg".

Originally created by @qazip on GitHub (May 22, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1301 This is the output after running spotify: ``` Reading profile /etc/firejail/spotify.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Parent pid 9419, child pid 9420 Child process initialized in 56.47 ms [0522/175846:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak [0522/175846:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak [0522/175846:ERROR:gl_implementation.cc(223)] Failed to load libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory [0522/175846:ERROR:gpu_child_thread.cc(390)] Exiting GPU process due to errors during initialization [0522/175907:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process. [0522/175907:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process. ``` I'm using Ubuntu 16.04 and I did "sudo firecfg".
gitea-mirror 2026-05-05 07:03:05 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Fred-Barclay commented on GitHub (May 22, 2017):

How long does it take to open in firejail?
How long without firejail?

😄

<!-- gh-comment-id:303175891 --> @Fred-Barclay commented on GitHub (May 22, 2017): How long does it take to open in firejail? How long without firejail? 😄
Author
Owner

@qazip commented on GitHub (May 22, 2017):

Sorry, idiot question: How do I open without firejail now?

With firejail, it takes 30 seconds, with an SSD.

<!-- gh-comment-id:303178600 --> @qazip commented on GitHub (May 22, 2017): Sorry, idiot question: How do I open without firejail now? With firejail, it takes 30 seconds, with an SSD.
Author
Owner

@Fred-Barclay commented on GitHub (May 22, 2017):

spotify in your terminal. 😉

Ife you've run sudo firecfg in your terminal previously, you'll need to do sudo rm -rf /usr/local/bin/spotify first.

<!-- gh-comment-id:303179966 --> @Fred-Barclay commented on GitHub (May 22, 2017): `spotify` in your terminal. 😉 Ife you've run `sudo firecfg` in your terminal previously, you'll need to do `sudo rm -rf /usr/local/bin/spotify` first.
Author
Owner

@qazip commented on GitHub (May 22, 2017):

I removed the link as per your suggestion in the other thread (sudo firecfg --clean) and ran spotify. It opened instantaneous (1 sec at most). This is the output without firejail:

spotify 
[0522/193529:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak
[0522/193529:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak
<!-- gh-comment-id:303184201 --> @qazip commented on GitHub (May 22, 2017): I removed the link as per your suggestion in the other thread (sudo firecfg --clean) and ran spotify. It opened instantaneous (1 sec at most). This is the output without firejail: ``` spotify [0522/193529:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak [0522/193529:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak ```
Author
Owner

@Fred-Barclay commented on GitHub (May 22, 2017):

Can you copy this to ~/.config/firejail/spotify.profile and try running firejail spotify?

# This file is overwritten during software install.
# Persistent customizations should go in a .local file.
include /etc/firejail/spotify.local

# Spotify media player profile
noblacklist ${HOME}/.config/spotify
noblacklist ${HOME}/.cache/spotify
noblacklist ${HOME}/.local/share/spotify
include /etc/firejail/disable-common.inc
include /etc/firejail/disable-programs.inc
include /etc/firejail/disable-devel.inc
include /etc/firejail/disable-passwdmgr.inc

# Whitelist the folders needed by Spotify
mkdir ${HOME}/.config/spotify
whitelist ${HOME}/.config/spotify
mkdir ${HOME}/.local/share/spotify
whitelist ${HOME}/.local/share/spotify
mkdir ${HOME}/.cache/spotify
whitelist ${HOME}/.cache/spotify

caps.drop all
netfilter
nogroups
nonewprivs
noroot
protocol unix,inet,inet6,netlink
seccomp
shell none

noexec ${HOME}
noexec /tmp

private-bin spotify,bash,sh,ls,pwd,cat
private-etc fonts,machine-id,pulse,resolv.conf
private-dev
private-tmp

blacklist ${HOME}/.Xauthority
blacklist ${HOME}/.bashrc
blacklist /boot
blacklist /lost+found
blacklist /media
blacklist /mnt
blacklist /opt
blacklist /root
blacklist /sbin
blacklist /srv
blacklist /sys

I think the problem was blacklist /var.

<!-- gh-comment-id:303231509 --> @Fred-Barclay commented on GitHub (May 22, 2017): Can you copy this to ~/.config/firejail/spotify.profile and try running `firejail spotify`? ``` # This file is overwritten during software install. # Persistent customizations should go in a .local file. include /etc/firejail/spotify.local # Spotify media player profile noblacklist ${HOME}/.config/spotify noblacklist ${HOME}/.cache/spotify noblacklist ${HOME}/.local/share/spotify include /etc/firejail/disable-common.inc include /etc/firejail/disable-programs.inc include /etc/firejail/disable-devel.inc include /etc/firejail/disable-passwdmgr.inc # Whitelist the folders needed by Spotify mkdir ${HOME}/.config/spotify whitelist ${HOME}/.config/spotify mkdir ${HOME}/.local/share/spotify whitelist ${HOME}/.local/share/spotify mkdir ${HOME}/.cache/spotify whitelist ${HOME}/.cache/spotify caps.drop all netfilter nogroups nonewprivs noroot protocol unix,inet,inet6,netlink seccomp shell none noexec ${HOME} noexec /tmp private-bin spotify,bash,sh,ls,pwd,cat private-etc fonts,machine-id,pulse,resolv.conf private-dev private-tmp blacklist ${HOME}/.Xauthority blacklist ${HOME}/.bashrc blacklist /boot blacklist /lost+found blacklist /media blacklist /mnt blacklist /opt blacklist /root blacklist /sbin blacklist /srv blacklist /sys ``` I think the problem was `blacklist /var`.
Author
Owner

@qazip commented on GitHub (May 23, 2017):

I did that (had to create the folder) and it seems to fix the long start-up time. I still get some errors, not sure if those are expected:

firejail spotify
Reading profile /home/user/.config/firejail/spotify.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Parent pid 4804, child pid 4805
Child process initialized in 66.78 ms
[0523/063210:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak
[0523/063210:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak
[0523/063210:ERROR:gl_implementation.cc(223)] Failed to load libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[0523/063210:ERROR:gpu_child_thread.cc(390)] Exiting GPU process due to errors during initialization
[0523/063210:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
<!-- gh-comment-id:303303454 --> @qazip commented on GitHub (May 23, 2017): I did that (had to create the folder) and it seems to fix the long start-up time. I still get some errors, not sure if those are expected: ``` firejail spotify Reading profile /home/user/.config/firejail/spotify.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Parent pid 4804, child pid 4805 Child process initialized in 66.78 ms [0523/063210:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak [0523/063210:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak [0523/063210:ERROR:gl_implementation.cc(223)] Failed to load libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory [0523/063210:ERROR:gpu_child_thread.cc(390)] Exiting GPU process due to errors during initialization [0523/063210:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process. ```
Author
Owner

@Fred-Barclay commented on GitHub (May 23, 2017):

Great!
Those errors are expected - no worries. :)

<!-- gh-comment-id:303450868 --> @Fred-Barclay commented on GitHub (May 23, 2017): Great! Those errors are expected - no worries. :)
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#887
No description provided.