mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6674] [MERGED] bugfix: firecfg: check full .desktop filename in check_profile() #6115
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#6115
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/6674
Author: @kmk3
Created: 3/1/2025
Status: ✅ Merged
Merged: 3/4/2025
Merged by: @kmk3
Base:
master← Head:firecfg-fix-full-desktop📝 Commits (1)
7f31fbfbugfix: firecfg: check full filename in check_profile()📊 Changes
1 file changed (+10 additions, -3 deletions)
View changed files
📝
src/firecfg/desktop_files.c(+10 -3)📄 Description
Currently, firecfg only checks the last word in .desktop files when
trying to match them to an existing profile. For example:
org.gnome.gedit.desktop->gedit.desktoporg.gnome.seahorse.Application.desktop->Application.desktopThis works in the former case where there is an exact match of the last
word on each side (
gedit.desktopandgedit.profile), but not in thelatter case (
Application.desktopandseahorse.profile).So make firecfg also check the full filename of the .desktop file, to
make it easier to create redirect profiles that match the full name of
the .desktop files. For example:
org.gnome.seahorse.Application.desktop->org.gnome.seahorse.Application.profile(which itself then redirectsto
seahorse.profile)Related commits:
a6341b904("disable DBus activation in firecfg", 2017-09-25)3e69deba3("fix firecfg", 2017-09-25)bd9761508("Temp fix firecfg (#2634)", 2019-04-02)Relates to #2624 #6658.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.