Bug 486552

Summary: applications-blacklistrc ignored since Plasma 6
Product: [Plasma] plasma-mobile Reporter: Plata <plata.hill>
Component: ShellAssignee: Plasma Mobile Bugs <plasma-mobile-bugs-null>
Status: REPORTED ---    
Severity: normal CC: carl, espidev
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Plata 2024-05-04 09:36:08 UTC
SUMMARY
I'm using this blacklist https://github.com/plata/ublue-surface/blob/main/config/files/usr/etc/xdg/applications-blacklistrc to hide certain apps in Folio/Halcyon. After updating to Plasma 6, the blacklisted apps are shown.

STEPS TO REPRODUCE
1. Create/edit     /usr/etc/xdg/applications-blacklistrc
2. Check Folio/Halcyon

OBSERVED RESULT
Apps are shown.

EXPECTED RESULT
Apps are not shown.

SOFTWARE/OS VERSIONS
Linux: Fedora 40 (Kinoite)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Comment 1 Devin Lin 2024-05-06 00:38:22 UTC
In Plasma 6, Plasma Mobile writes the default entry in .config/applications-blacklistrc which has a higher priority than /usr/etc/xdg/applications-blacklistrc

Try writing the value to .config/applications-blacklistrc
Comment 2 Plata 2024-05-09 09:52:18 UTC
If I understand correctly, the defaults are set in https://invent.kde.org/plasma/plasma-mobile/-/blob/master/envmanager/config.h, right? I see that the applications-blacklistrc has been removed from Plasma Phone Settings in https://invent.kde.org/plasma-mobile/plasma-phone-settings/-/commit/c6a19738bd9800811a124e18e58a383b85db3c01 but the commit does not provide any further details.

What's the correct way to influence the default from a distribution's perspective? Can I add my applications-blacklistrc to /etc/skel?