Tested by installing an app through gnome-software, and it seems to work
fixes #15835 (closed)
reverts 087d2822
reverts 0af57dde