mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #7030] yt-dlp: Unable to access browser cookies for authenticated downloads #3459
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3459
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hyder365 on GitHub (Jan 13, 2026).
Original GitHub issue: https://github.com/netblue30/firejail/issues/7030
Description
When running yt-dlp in firejail to download YouTube videos, sometimes a rate limit is put in place. This requires the user to log in via a browser to "prove you're not a bot." The yt-dlp program can use the cookies file from the browser with the "--cookies-from-browser firefox" (for example) flag. Firejail blocks access to this needed file.
Steps to Reproduce
Steps to reproduce the behavior
Expected behavior
Download begins.
Actual behavior
Extracting cookies from firefox
ERROR: could not find firefox cookies database in
'/home/user/.config/mozilla/firefox',
'/home/user/.mozilla/firefox',
'/home/user/.var/app/org.mozilla.firefox/config/mozilla/firefox',
'/home/user/.var/app/org.mozilla.firefox/.mozilla/firefox',
'/home/user/snap/firefox/common/.mozilla/firefox'
Environment
Checklist
firejail /usr/bin/vlcinstead offirejail vlc; seehttps://github.com/netblue30/firejail/issues/2877)/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Related commits:
d7f903b21("more on yt-dlp profile", 2026-01-13)26c8d60c6("whitespace", 2026-01-13)Relates to:
@netblue30 commented on GitHub (Jan 13, 2026):
Grab the latest yt-dlp.profile form git https://github.com/netblue30/firejail/blob/master/etc/profile-m-z/yt-dlp.profile and copy it in /etc/firejail directory.
Uncomment noblacklist ${HOME}/.mozilla line. The profile should also fix deno JavaScript problem.