diff --git a/05-flatpak-fontpath.conf b/05-flatpak-fontpath.conf
new file mode 100644
index 0000000..b5bd37a
--- /dev/null
+++ b/05-flatpak-fontpath.conf
@@ -0,0 +1,12 @@
+
+
+
+
+
+ /usr/share/fonts
+ /usr/share/X11/fonts/Type1
+ /usr/share/X11/fonts/TTF
+ /usr/local/share/fonts
+ fonts
+ ~/.fonts
+
diff --git a/50-flatpak.conf b/50-flatpak.conf
index 430e8f1..27e0964 100644
--- a/50-flatpak.conf
+++ b/50-flatpak.conf
@@ -21,4 +21,6 @@
/run/host/fonts-cache
/run/host/user-fonts-cache
+
+ /run/host/font-dirs.xml
diff --git a/defaults.json.in b/defaults.json.in
index 709d182..b6fb0a8 100644
--- a/defaults.json.in
+++ b/defaults.json.in
@@ -3,5 +3,5 @@
"cflags": "%{build_cflags}",
"cxxflags": "%{build_cxxflags}",
"cppflags": "",
- "ldflags": "-L/app/lib %{build_ldflags}"
+ "ldflags": "-L/app/%{_lib} %{build_ldflags}"
}
diff --git a/flatpak-runtime-config.spec b/flatpak-runtime-config.spec
index 527340a..6968f57 100644
--- a/flatpak-runtime-config.spec
+++ b/flatpak-runtime-config.spec
@@ -3,9 +3,11 @@ Version: 36
Release: 2%{?dist}
Summary: Configuration files that live inside the flatpak runtime
Source1: 50-flatpak.conf
+Source2: usercustomize.py
Source3: org.fedoraproject.Platform.appdata.xml
Source4: org.fedoraproject.Sdk.appdata.xml
Source5: defaults.json.in
+Source6: 05-flatpak-fontpath.conf
License: MIT
@@ -29,19 +31,13 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}/cache/fontconfig
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
install -t $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d -p -m 0644 %{SOURCE1}
+install -t $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d -p -m 0644 %{SOURCE6}
# usercustomize.py to set up Python paths
-mkdir -p $RPM_BUILD_ROOT%{python3_sitelib}
-cat > $RPM_BUILD_ROOT%{python3_sitelib}/usercustomize.py < - 36-2
+- Correctly substitute /app/lib in flatpak-builder defaults.json ldflags
+- Revert "Fix search paths for /app-installed python modules" (#2026979)
+
* Thu Aug 04 2022 Kalev Lember - 36-2
- Fix search paths for /app-installed python modules (#2112499)