Stop using /usr/etc, /usr/var, etc.
Context
The origin of using /usr/etc
as sysconfdir is because this is how Flatpak works. And Freedesktop SDK was targeting mainly Flatpak. However we do not want to target only Flatpak anymore. So we should go away from that and only fix the Flatpak images have everything in prefix.
Description
Use:
-
/etc
as sysconfdir -
/var
as localstatedir
Create script that moves the files into /usr
for Flatpak images.
This can be done for example by using script element instead of compose for desktop-image.bst
(and others) and adding commands to move the files, or by those commands injecting integration commands and keeping a compose plugin for desktop-image.bst
.
Acceptance Criteria
-
/etc
as sysconfdir -
/var
as localstatedir
And Flatpak images still work.