Some desktop snaps are no longer visible in the apps menu
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| malcontent (Debian) |
Fix Released
|
Unknown
|
|||
| malcontent (Ubuntu) |
Fix Released
|
High
|
Alessandro Astone | ||
| Jammy |
Fix Released
|
High
|
Alessandro Astone | ||
| Noble |
Fix Released
|
High
|
Alessandro Astone | ||
| Plucky |
Fix Released
|
High
|
Alessandro Astone | ||
| Questing |
Fix Released
|
High
|
Alessandro Astone | ||
Bug Description
[ Impact ]
Malcontent is a parental control mechanism implemented in GNOME Shell.
It supports hiding applications from the application menu.
Some desktop snaps like telegram-desktop are no longer visible in GNOME Shell when libmalcontent is installed, even without any filters applied. Which snaps are hidden depends on the numbers of command-line arguments they specify in the Exec line. If it's more than 2, then the snap will be hidden.
For example, telegram-desktop uses:
Exec=/snap/
Ubuntu ships a patch in malcontent to allow filtering non-flatpak applications too.
This patch assumed that a desktop snap Exec= line would always follow the format `Exec=env BAMF_DESKTOP_
That was changed in snapd version 2.72 to remove the BAMF_DESKTOP_
Malcontent needs to be adapted to not assume that the snap binary is always the third argument.
[ Test Plan ]
1. Install the `malcontent` deb package
-> this is pre-installed on some OEM installs.
2. Log-out, log-in again.
3. Install snapd 2.72 or newer, available from the candidate channel:
`sudo snap refresh snapd --candidate`
4. Install the `telegram-desktop` snap
5. Open the GNOME Shell application launcher
6. Search for Telegram
7. Verify that the Telegram app is listed.
[ Where problems could occur ]
Problems would manifest with applications being incorrectly filtered out or not filtered out.
The patch should make sure that it is future-proof by not assuming the position of the binary path in the command-line a-priori.
Related branches
- Alessandro Astone (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 150 lines (+49/-25)2 files modifieddebian/changelog (+6/-0)
debian/patches/all_apps.patch (+43/-25)
- Sebastien Bacher (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 108 lines (+36/-13)2 files modifieddebian/changelog (+6/-0)
debian/patches/all_apps.patch (+30/-13)
| summary: |
- malcontent hides all snaps with command-line arguments + malcontent hides snaps which have command-line arguments |
| summary: |
- malcontent hides snaps which have command-line arguments + malcontent hides snaps that have command-line arguments |
| Changed in malcontent (Ubuntu): | |
| status: | New → In Progress |
| assignee: | nobody → Alessandro Astone (aleasto) |
| importance: | Undecided → High |
| description: | updated |
| summary: |
- malcontent hides snaps that have command-line arguments + Some desktop snaps are no longer visible in the applications menu |
| summary: |
- Some desktop snaps are no longer visible in the applications menu + Some desktop snaps are no longer visible in the apps menu |
| tags: | added: udeng-8372 |
| Changed in malcontent (Ubuntu Jammy): | |
| importance: | Undecided → High |
| Changed in malcontent (Ubuntu Plucky): | |
| importance: | Undecided → High |
| Changed in malcontent (Ubuntu Jammy): | |
| assignee: | nobody → Alessandro Astone (aleasto) |
| Changed in malcontent (Ubuntu Noble): | |
| assignee: | nobody → Alessandro Astone (aleasto) |
| importance: | Undecided → High |
| Changed in malcontent (Ubuntu Plucky): | |
| assignee: | nobody → Alessandro Astone (aleasto) |
| Changed in malcontent (Ubuntu Jammy): | |
| status: | New → In Progress |
| Changed in malcontent (Ubuntu Noble): | |
| status: | New → In Progress |
| Changed in malcontent (Ubuntu Plucky): | |
| status: | New → In Progress |
| Changed in malcontent (Ubuntu Questing): | |
| status: | New → In Progress |
| importance: | Undecided → High |
| assignee: | nobody → Alessandro Astone (aleasto) |
| Changed in malcontent (Ubuntu Questing): | |
| status: | In Progress → Fix Committed |
| description: | updated |
| description: | updated |
| description: | updated |
| Changed in malcontent (Ubuntu Plucky): | |
| status: | In Progress → Fix Committed |
| Changed in malcontent (Ubuntu Noble): | |
| status: | In Progress → Fix Committed |
| Changed in malcontent (Debian): | |
| status: | Unknown → Fix Released |

Sent fix to debian: https:/ /salsa. debian. org/freedesktop -team/malconten t/-/merge_ requests/ 12