Update desktop ID detection code
Submitted by Bastien Nocera
Description
The way of doing things with the newest Flatpak is simpler, and works without cgroups: https://github.com/flatpak/xdg-desktop-portal/commit/925a13934face0642620f79f64c4c8b83ac60f06
Edited by Bugzilla Migration User