Fix external app handling in flatpak

This commit is contained in:
Jan Horak 2019-05-31 16:13:47 +02:00
parent 9ccabf9ffb
commit 7edd26f80c
2 changed files with 10 additions and 0 deletions

View File

@ -248,6 +248,9 @@ do
esac
done
# Flatpak specific environment variables
%FLATPAK_ENV_VARS%
# Run the browser
debugging=0
if [ $debugging = 1 ]

View File

@ -667,6 +667,13 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE29}
-e 's,/__PREFIX__,%{_prefix},g' %{SOURCE21} > %{buildroot}%{_bindir}/firefox
%{__chmod} 755 %{buildroot}%{_bindir}/firefox
%if 0%{?flatpak}
sed -i -e 's|%FLATPAK_ENV_VARS%|export TMPDIR=$XDG_CACHE_HOME/tmp"|' %{buildroot}%{_bindir}/firefox
%else
sed -i -e 's|%FLATPAK_ENV_VARS%||' %{buildroot}%{_bindir}/firefox
%endif
%if 0%{?wayland_backend_default}
%{__sed} -e 's,/__PREFIX__,%{_prefix},g' %{SOURCE30} > %{buildroot}%{_bindir}/firefox-x11
%{__chmod} 755 %{buildroot}%{_bindir}/firefox-x11