mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6871] [MERGED] bugfix: firecfg: fix parsing filenames with multiple ".desktop" #6207
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#6207
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/6871
Author: @kmk3
Created: 8/19/2025
Status: ✅ Merged
Merged: 8/20/2025
Merged by: @netblue30
Base:
master← Head:firecfg-fix-double-desktop📝 Commits (1)
a67db2dbugfix: firecfg: fix parsing filenames with multiple ".desktop"📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/firecfg/desktop_files.c(+2 -2)📄 Description
When checking if a .desktop file is valid, firecfg currently searches
for the first occurrence of
.desktopin the filename and checks thatit is at the end of the string.
This fails if the filename contains multiple occurrences of
.desktop,such as the one for Telegram Desktop,
org.telegram.desktop.desktop:Instead, start the
.desktopcomparison from the last.character inthe filename.
This amends commit
a9c851ee4("firecfg: use ignorelist also for .desktopfiles", 2024-01-08) / PR #6153.
Fixes #6865.
Relates to #5245 #5876.
Reported-by: @tht2005
Reported-by: @rusty-snake
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.